首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >luac: main.lua:170:“end”预期(在第150行结束“函数”)在<eof>附近

luac: main.lua:170:“end”预期(在第150行结束“函数”)在<eof>附近
EN

Stack Overflow用户
提问于 2022-03-22 06:18:32
回答 1查看 29关注 0票数 0

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

代码语言:javascript
复制
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次,删除/添加选项卡,但仍然找不到它!

EN

回答 1

Stack Overflow用户

发布于 2022-03-22 06:21:09

好的,这是我的错,因为我没有在函数中添加end

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/71567666

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档