Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Top Posters

Who's Online (3)

Powered by Vanilla. Made with Bootstrap.
[ASM]Make dir
  • chroniccommand
    Posts: 1,389
    Very simple ASM code to create a directory. In this case it is /tmp/lol

    section .data
    pathto: db '/tmp/lol'
    section .text
    global _start
    _start:
    mov eax,39
    mov ebx,pathto
    mov ecx,766q
    int 80h
    mov eax,1
    int 80h

    Note that this was not created by me, it was found on the internet.
  • Xin
    Posts: 3,251
    Great share! I need to read up more on this sort of stuff
    Xin
  • Bursihido
    Posts: 406
    i need to leran this asm stuff anyway nice share bro :)
  • Never really tried ASM is it much different from c/c++ ?
  • Sh3llc0d3
    Posts: 1,910
    Yeah it is... ASM is code used to program CPU's and circuitry, C++/C are programming languages that are decoded into machine code [MSIL or CIL as it's now known] and then processed by the CPU.

    I have to learn ASM at the moment for college and I can honestly say I don't think i'll ever need or use it. Give me C++ anyday over ASM.

    http://en.wikipedia.org/wiki/Assembly_language
  • Bursihido
    Posts: 406
    said:


    Yeah it is... ASM is code used to program CPU's and circuitry, C++/C are programming languages that are decoded into machine code [MSIL or CIL as it's now known] and then processed by the CPU.

    I have to learn ASM at the moment for college and I can honestly say I don't think i'll ever need or use it. Give me C++ anyday over ASM.

    http://en.wikipedia.org/wiki/Assembly_language



    Old is gold :D