luac: main.lua:170: “结束”预计(在第 150 行关闭“函数”)接近

发布于 2025-01-16 08:45:44 字数 975 浏览 1 评论 0原文

几个小时,我仍在寻找这段代码中缺失的结尾!

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

谎言 2025-01-23 08:45:44

好吧,这是我的错,没有在函数内添加 end

Ok it's my fault for not adding end inside the function

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文