【求助贴】论坛新人求助,lua加RC4加密
度娘告诉我,lua是用标准C语言编写的,所以就来这个论坛求助了好人一生平安目的:这是一个卡密系统(GG源码),我想使用RC4加密,不然一个黄鸟就破了,应该怎么修改代码?
程序代码:
app="10000" function Main() KS = gg.choice({ "[卡密]", "[退出脚本]"}, nil) if KS == nil then else if KS == 1 then danma() end end if KS == 2 then os.exit() end FX1 = -1 end local user,kmfile="http://abc.lhnnb.cf/",gg.EXT_STORAGE..'/.km' function Cx_(co)res=''for i in ipairs(co)do res=res..string.char(co[i]) end return res end function danma(km) reg=gg.prompt({ Cx_({229,141,161,229,175,134}), }, { '', }, { Cx_({116,101,120,116}), }) XGCK=-1 if reg==nil then gg.alert(Cx_({231,187,136,230,173,162,231,168,139,229,186,143})) os.exit() end local userreg=gg.makeRequest(user..Cx_({47,97,112,105,46,112,104,112,63,97,99,116,61,107,109,95,108,111,103,111,110,38,97,112,112,61})..app..Cx_({38,107,97,109,105,61})..reg[1]).content if userreg then local userreg,code=gg.makeRequest(user).content,userreg:match(Cx_({99,111,100,101,34,58,40,37,100,43,41})) if code==Cx_({49,52,57})then gg.alert(Cx_({229,141,161,229,175,134,228,184,141,229,173,152,229,156,168})) io.open(kmfile, Cx_({119})) io.open(kmfile,Cx_({119})):write(reg[1]):close() while(code)do if gg.isVisible() then gg.setVisible(false) XGCK=1 end if XGCK==1 then danma() end end end if code==Cx_({49,48,49})then gg.alert(Cx_({231,148,168,230,136,183,228,184,141,229,173,152,229,156,168})) io.open(kmfile, Cx_({119})) io.open(kmfile,Cx_({119})):write(reg[1]):close() while(code)do if gg.isVisible() then gg.setVisible(false) XGCK=1 end if XGCK==1 then danma() end end end if code==Cx_({52,48,51})then gg.alert(Cx_({117,117,105,100,230,156,170,229,161,171,229,134,153,47,228,184,141,230,173,163,231,161,174})) io.open(kmfile, Cx_({119})) io.open(kmfile,Cx_({119})):write(reg[1]):close() while(code)do if gg.isVisible() then gg.setVisible(false) XGCK=1 end if XGCK==1 then danma() end end end if code==Cx_({50,48,48})then gg.alert(Cx_({230,191,128,230,180,187,230,136,144,229,138,159})) io.open(kmfile, Cx_({119})) io.open(kmfile,Cx_({119})):write(reg[1]):close() while(code)do if gg.isVisible() then gg.setVisible(false) XGCK=1 end if XGCK==1 then Main0() end end end end end function Main0() SN = gg.choice({ "进入功能", "退出脚本", }, nil, "老挂b是银汉的父亲") if SN==1 then Main10() end if SN==2 then HS8() end FX1=0 end function Main10() SN = gg.choice({ "1", "1", "1", "1", "1", "1", }, nil, "") if SN==1 then HS11() end if SN==2 then HS12() end if SN==3 then HS13() end if SN==4 then HS14() end if SN==5 then HS15() end if SN==6 then HS16() end FX1=0 end function HS11() gg.clearResults() gg.setRanges(4) gg.searchNumber("11D;1;3D;7D;2D::150", gg.TYPE_DOUBLE, false, gg.SIGN_EQUAL, 0, -1) gg.searchNumber("1", gg.TYPE_DOUBLE, false, gg.SIGN_EQUAL, 0, -1) jg=gg.getResults(100) sl=gg.getResultCount() for i = 1, sl do dzy=jg[i].address gg.addListItems({[1] = {address = dzy,flags = gg.TYPE_DOUBLE,freeze = true,value = -10}}) end gg.toast("修改成功") gg.clearResults() end function HS12() gg.clearResults() gg.setRanges(4) gg.searchNumber("5D;3;3D;2D;2;3D;1;3D;4D;6D;4D;4D;1::", gg.TYPE_DOUBLE, false, gg.SIGN_EQUAL, 0, -1) gg.searchNumber("1", gg.TYPE_DOUBLE, false, gg.SIGN_EQUAL, 0, -1) jg=gg.getResults(100) sl=gg.getResultCount() for i = 1, sl do dzy=jg[i].address gg.addListItems({[1] = {address = dzy,flags = gg.TYPE_DOUBLE,freeze = true,value = 2}}) end gg.toast("2") gg.clearResults() end function HS13() gg.clearResults() gg.setRanges(4) gg.searchNumber("6D;4D;1;3D;4D;6D;4D;1;3D;4D;6D;4D;1;3D;4D:180", gg.TYPE_DOUBLE, false, gg.SIGN_EQUAL, 0, -1) gg.searchNumber("1", gg.TYPE_DOUBLE, false, gg.SIGN_EQUAL, 0, -1) jg=gg.getResults(100) sl=gg.getResultCount() for i = 1, sl do dzy=jg[i].address gg.addListItems({[1] = {address = dzy,flags = gg.TYPE_DOUBLE,freeze = true,value = 10}}) end gg.toast("2") gg.clearResults() end function HS14() gg.clearResults() gg.setRanges(4) gg.searchNumber("4;1000;3D;4D;4D;4D;4D;4D;4D;4D;4D;4D;1;3D;4D;1D::", gg.TYPE_DOUBLE, false, gg.SIGN_EQUAL, 0, -1) gg.searchNumber("1", gg.TYPE_DOUBLE, false, gg.SIGN_EQUAL, 0, -1) jg=gg.getResults(100) sl=gg.getResultCount() for i = 1, sl do dzy=jg[i].address gg.addListItems({[1] = {address = dzy,flags = gg.TYPE_DOUBLE,freeze = true,value = -1}}) end gg.toast("2") gg.clearResults() end function HS15() gg.clearResults() gg.setRanges(4) gg.searchNumber("1;3D;3D;1D;4D;4D;4D;4D;4D;4D;2;3D;4D;4D;4D;60::", gg.TYPE_DOUBLE, false, gg.SIGN_EQUAL, 0, -1) gg.searchNumber("1", gg.TYPE_DOUBLE, false, gg.SIGN_EQUAL, 0, -1) jg=gg.getResults(100) sl=gg.getResultCount() for i = 1, sl do dzy=jg[i].address gg.addListItems({[1] = {address = dzy,flags = gg.TYPE_DOUBLE,freeze = true,value = 200}}) end gg.toast("2") gg.clearResults() end function HS16() gg.clearResults() gg.setRanges(4) gg.searchNumber("104;3;316;4;1575::", gg.TYPE_DOUBLE, false, gg.SIGN_EQUAL, 0, -1) gg.searchNumber("4", gg.TYPE_DOUBLE, false, gg.SIGN_EQUAL, 0, -1) jg=gg.getResults(100) sl=gg.getResultCount() for i = 1, sl do dzy=jg[i].address gg.addListItems({[1] = {address = dzy,flags = gg.TYPE_DOUBLE,freeze = true,value = 0}}) end gg.toast("2") gg.clearResults() end function HS8() os.exit() end while true do if gg.isVisible(true) then FX1 = nil gg.setVisible(false) end if FX1 == nil then Main() end end