Showing posts with label programming. Show all posts
Showing posts with label programming. Show all posts

Reversing/Keygenning Tutorials

Well after talking with b_W (or whatever nick he had changed to now...) about a tutorial for "newbies" about keygenning I told him I will make at least two just to help him, and here they are!
Working on the AWESOME keygen for Keygenme#3

In these two first tutorial you will see how I analize and reverse a crackme, EasyCrack by Kwazy Webbit, in the first one, and Keygenme#3 by Enforcer in the second place.

Requeriments:

- Basic knowledge of programming, assembly language, debugger use (OllyDbg mainly.)

Aims:
Working on the keygen for Kwazy EasyCrack

- Show the workflow of a common reversing/keygening session. The use of tools and analizys and understanding of code and algorithms

Reversing Keygenme#3
What it's NOT:

- It's not a tutorial about assembly language, neither about specific tools. It's not theory. If you want to indeep into some topics you should follow mentioned references.



Tools:

- OllyDbg [site][standalone - version 1.10][modified version 1.10][full package][full + tools * list of tools] (not yet, sorry)
- WinAsm [site][installer][portable], MASM32 package [site][installer][full package]

Reversing EasyCrack
System requeriments:
- Flash v6.0 or above [site][SWF player]
- 256MB memory at least

PS: A day after established release date. Well done! Never such a punctual before!

Downloads:

Tutorial #2 - Keygenning Enforcer´s Keygenme#3 - [keygen source]


GFX/SFX package

Here is some keygen templates with and without GFX. Also a couple chiptunes I like.
Some templates are pretty old; some of them where written when I just started at this thingy, so you may will notice the evolution of my code from the oldest to the newest.
Also there are a couple of things from my short walk-thought FoFF team. Hope they don´t mind. Those things are just old now...


This is a keygen a made for the FoFF trial 2008. Kinda cool isn´t? btw I didn´t made that image lol.

















This one is from a keygen for an Encrypto km, I guess... I don´t remember exactly...









And this is a test template for a rain effect library. It´s pretty soft rain but it could be improved I guess... Rain library is from The Great "Water Effect" Demo by Tom Kenny.










Those gfxs combined with  some cool chiptune will make a really cool keygen. It´s just question of sitting down and test---

Enjoy!

Download GFX / SFX 


Neko v3 Final

I´d done with it since while ago- but I just forget to post it. lol. So, here it´s a funny thingy  I´d done in JS (Opera Widget) and now in Assembly.

There are four characters to choose: Neko, ´dancer´, Ghost and Pirate (dancer and pirate comes from a Razor keygen template here)



Neko has an artwork from Oneko by Masayuki Koba. It was AMOR'd by Chris Spiegel and later widgetized by me.
















And the others: Ghost comes in the AMoR package. Pirate and Dancer are works of Razor1911 team, I just dump it from resources XD



Well that´s all. Nothing interesting really just for the fun of coding something rare.... mmm I really miss objects when coding it. It was pretty different than the widget version. (well obvious isn´t?) Kinda easier for me... :-/

 Download



    Projects

    Wow, to quiet here. No updates since nov 23. This blog is dead... hey wait... this is MY blog... WTF!! ^_^

    Well let´s share my projects. Currently in working on a bunch of projects, most of them related to malware or anon networks.
    In my top priorities is my Darknet project. A P2P, decentralized and anonymous botnet. It´s in a very early development state but it´s being updated and most of all it´s core is being reviewed and thinked as much as I can so no vaporware in here ;) This network will be up and running and I´ll get some fun with it until it get bored and them I´ve to move on.... :P
    Let´s see the two main features of this Darknet:
    • Secure communication between peers. This is done establishing a secure, encrypted, way for data exchange. This will be transparent to the peers; relaying on the network layer of the protocol. As a short description peers will:
      1. Generate a pair of pub/private keys. This is my main problem ´till now because I´ve to build a good bignum library to work with to generate valid and secure pub/priv key pairs.
      2. Establish a ephemeral key for symmetric encryption following Diffie-Hellman Key Exchange Agreement. I´d already coded a keygenme to uses Diffie-hellman protocol so I only have to use that library and update it with appropriate, secure keys.
      3. Encrypt and send the ephemeral keys. With the ephemeral keys now available for symmetric encryption we can exchange data unreadable by third parties. Of course MIM attacks can be achieved since the protocol it´s by it´s nature insecure (all of them). But, of course, it only can affect individual nodes in the network.
    • Anonymous routing. This is send and receive data with no hints of who is requesting or who is send such data. Similar to Freenet routing idea (in fact it comes from that). This way botnet owners can be tracked down when sends orders or updates to nodes.
      1. Node A sends a request for a file to Node B.
      2. Node B check that request and if it doesn´t have that file It re-routes the request.
      3. Node B sends a request for a file to Node C.
      4. Node C owns that file and returns the query to Node B
      5. Node B knows that query had came from Node A so it re-routes the send to Node A 
    Currently my preoccupation is it lacks of documentation. I´ve to work pretty hard to get some good, understandable documentation.

    Second project that captures all my attention is my  ´Advanced virus programming´ series of tutorials- I´d only released a single tutorial about all forms of injections I know. It was pretty small in terms of words. But to compensate there were lot and lots of code. All in assembly and pretty straight forward IMHO. And it was my intention that people GET in the CODE! Not just in the theory... I think it´s the best way to learn: Practice.
    Well when I can get some time to write next tutorials for this series I´ll try to put some more words and theory but no to much XD. There will come:
    •  Entry Point Obscuring. Various forms I know about EPO. A good and interesting technique to avoid AVs detection.
    •  Self-mailing worms. I´d still need to work with MX servers to get something working. But anyways It´s pretty interesting to see.
    • IRC-based botnets. I´d already coded a simple, understandable plug-ing based IRC botnet for the tutorial. I just need to WRITE it.
    I´ve other ideas for this series but I need to finish those first :D

    And well those are the two main projects I´ve in my to-do list since I´m really currently working on a Apache, PHP web project (that you don´t want to know :P).


    Asphyxia´s km#6

    blah blah blah, my km #6 and goin boring again. nothing to see here, but if u have some spare time then u've this crappy thing...




    mmm.. i've to say that the main "protection" algo wasnt my idea, i'd seen it somewhere and then coded it. its pretty easy to solve and make a kg is easier

    rate 0/5 ;_;

    download

    chill the fuck out


    Neko v.2.4

    neko has a new friend, ghost. blah. til now it will crash if u try to switch btn both... so, dont do it

    download


    Neko v2.3

    Oops, the new version of Neko. There are some bugs yet but i get some tired about the cutie cat and just drop it. Some day i'll update and finish it... or maybe another guy will do it...

    Main changes are:
    - can have different characters. loaded as .dll
    - have an popup menu to access some... stuff
    - others... stuff

    download


    Asphyxia's km#5

    Well there is my #5 keygenme. There is (still) nothing interesting. I thought a lot of things but finally i just get bored and code this little boring thing. Maybe the next one will bring something cool, but till then u have this crap.



    WHAT A BORING DAY!!

    download


    Mental Alteration Recruit 2009

    Its wasnt to hard neither take too much. In fact few days after finished my km#4 i came with this recruit. After some problems that almost burn up all my work i can publish it.



    Way too much gfx for the year to me ¬_¬ Nice witch anyways. Its a layered window translucid with SetLayeredWindowAttribute, but i directly import it so i hope it'll be runned only on xp or vista boxes.

    The only good thing with the gfx is it frame and buttons, and i didnt do it. Its was a work of Mynes//FOFF. Nice work, thx for sharing XP

    I wasnt in any moment sure about the gfx; i choose it cuz of the mod; Some dark, some EBM, some shit like that.

    Finally the scroller is an adapted version of the nfo viewer i'd wroted some time ago.


    Thats enough gfx. The rest of the km (about 10% of its size) is the real meaning of it.

    There are some nasty stuff to piss off crackers XD that'll fuck some newbs.

    The recruit is mainly a sum of some works into vx. But the main core its the same crypto shit i usually use.

    I tried hard to make it all stable i can but it can have some problems here and there. Unfortunally.

    Thats enough, enjoy it if u can.

    Enough words!!,
    Asphyxia

    download


    Neko

    here its, some hours of fun and the masm32 version of Neko is done. ah, its not enterely completed yet, but almost.


    there are some differences with the widgetized version of it (javascript, duh).
    mainly the png thing; i could use pgn (pnglib) but i just choosed bmp, cuz i just load them and thats all, less memory and processor time wasted.

    for the tooltips (or just tips) i choosed to make it in another dialog box, apart from the main dlg. its a lot easier than resizing, moving etc.

    mmm, lets see; i've to do the preferences dlg, fix the tooltips, and some other thing and it will be completly done.

    download

    see also Neko widget launch, Neko widget page


    Asphyxia´s nfo viewer

    a little .nfo and .diz viewer just for the lulz... its still incomplete but its cool at it is by now so... check a look at it...

    download


    Asphyxia´s km#4

    A nice km to play with crypto crap. I think may u'll like it if u are learning crypto or u are an entusiast of cryptos.


    download

    See also:
    km#1, km#2, km#3 fixed


    Encoding libraries

    Some encoding libraries by me (b2, b10, b16, b32, b64, uu and xx)-- I made them just to learn how them work and get some skills into coding, how ever need to practice a lot more.

    encoding.tar.bz2


    RCE related resources

    Intel 80386 Programmer's Reference Manual HTML translation -- 0.9 version by Luigi Sgro [1MB]

    Intel 80386 Programmer's Reference Manual 1986 [1MB]

    Intel Hex Opcodes And Mnemonics
    Easy Assembler Shell v3.99

    PE Format.pdf by Ero Carrera Ventura founded at OpenRCE.org

    Windows Programmer´s Reference [~23MB]

    Each document owns to their respective(s) author(s). Will be deleted on request.


    We shall not cease from explaration, and the end
    of all our exploring will be to arrive where we started,
    and know the place for the first time.