luac: main.lua:170: “结束”预计(在第 150 行关闭“函数”)接近
几个小时,我仍在寻找这段代码中缺失的结尾!
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()
正如我所说,我尝试搜索 end 两次并删除/添加选项卡,但仍然找不到它!
hours and im still searching for the missing end in this code !
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()
As i said i tried searching for end 2 times and removed/added tabs but still can't find it!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好吧,这是我的错,没有在函数内添加 end
Ok it's my fault for not adding end inside the function