Donate to us via Paypal!
Become the change you seek in the world. - Gandhi
Sunday, February 28, 2021
Navigation
Home
 Find:
 Information:
Learn
Communicate
Submit
Shop
Challenges
 Exploit:
 Programming:
 Think:
 Track:
 Patch:
 Other:
 Need Help?
Other
Members Online
Total Online: 120
Guests Online: 120
Members Online: 0

Registered Members: 133756
Newest Member: Cleaners01
Latest Articles

View Thread

HellBound Hackers | Computer General | Programming

Author

Assembly Lanuage - ASM

Scar0ptics
Member



Posts: 229
Location: ∆ P®0X¥ W0R|D ∆
Joined: 19.11.13
Rank:
Mad User
Posted on 16-11-16 01:16
If you really want to break it down to a science then why not learn ASM, hell, most people don't even have a fucking clue what it is. This is the science behind a compiler as it already has these functions built within it already. This will allow you to break down the logic and science of system functions within operations going on with the machine.

section .text
global main ;must be declared for using gcc

main: ;tell linker entry point
mov edx, len ;message length
mov ecx, msg ;message to write
mov ebx, 1 ;file descriptor (stdout)
mov eax, 4 ;system call number (sys_write)
int 0x80 ;call kernel

mov eax, 1 ;system call number (sys_exit)
int 0x80 ;call kernel

section .data

msg db 'Hello, world!',0xa ;our dear string
len equ $ - msg ;length of our dear string


I was messing around with this and ended up creating two strings to show Hello World on two different lines. GrinTee-Hee-Hee

Edited by Scar0ptics on 16-11-16 01:19
overlay-network.ddns.net
Author

RE: Assembly Lanuage - ASM

Scar0ptics
Member



Posts: 229
Location: ∆ P®0X¥ W0R|D ∆
Joined: 19.11.13
Rank:
Mad User
Posted on 17-11-16 02:40
section .text
global main ;must be declared for using gcc

main: ;tell linker entry point

mov edx, len ;message length
mov ecx, msg ;message to write
mov ebx, 1 ;file descriptor (stdout)
mov eax, 4 ;system call number (sys_write)
int 0x80 ;call kernel

mov edx, len2 ;message length
mov ecx, msg2 ;message to write
mov ebx, 1 ;file descriptor (stdout)
mov eax, 4 ;system call number (sys_write)
int 0x80 ;call kernel


mov edx, len3 ;message length
mov ecx, msg3 ;message to write
mov ebx, 1 ;file descriptor (stdout)
mov eax, 4 ;system call number (sys_write)
int 0x80 ;call kernel


mov eax, 1 ;system call number (sys_exit)
int 0x80 ;call kernel

section .data

msg db 'Hello,',0xa ;our dear string
len equ $ - msg ;length of our dear string

msg2 db ' ',0xa ;our dear string
len2 equ $ - msg2 ;length of our dear string

msg3 db 'world!', 0xa ;our dear string
len3 equ $ - msg3 ;length of our dear string


I made some simple modifications....Tee-Hee-HeePfftTee-Hee-Hee


Also, check out http://syscalls.kernelgrok.com/

Edited by Scar0ptics on 17-11-16 14:48
overlay-network.ddns.net