April 26, 2017, 02:46:43 AM
Welcome, Guest. Please login or register.

"640 K ought to be enough for anybody." -- Bill Gates

Author Topic: Assembly peeps  (Read 1636 times)

Offline ch3rn0byl

  • Top Hat Member
  • Experienced
  • ********
  • Posts: 185
  • Internets: +1337/-0
  • Grumpy Old Man with Mounds of Salt
Assembly peeps
« on: August 18, 2016, 11:12:54 AM »
Are there any Assembly nuts in here? Thought I'd ask even though you guys don't like to be active. Maybe someone will...
I'm starting to learn more and would be cool if there are others
The quieter you become, the more you are unlikely to sound stupid.

Offline H4v0K

  • Administrator
  • Elite
  • *****
  • Posts: 1014
  • Internets: +985/-1
Re: Assembly peeps
« Reply #1 on: August 18, 2016, 02:20:30 PM »
hahhahahhahhahhahahahahahhahhahaahhaahahahahhahaahahahahahaha

And that's all i have to say about that  :o

Offline w33nd0x

  • Top Hat Member
  • Experienced
  • ********
  • Posts: 113
  • Internets: +19/-0
Re: Assembly peeps
« Reply #2 on: August 18, 2016, 09:43:25 PM »
Code: [Select]
global _start

section .text

_start:
   
    ; print message to screen
    mov eax, 0x4
    mov ebx, 0x1
    mov ecx, message
    mov edx, mlen
    int 0x80

    ; exit
    mov eax, 0x1
    mov ebx, 0x1
    int 0x80

section .data
   
    message: db "Yep I'm learning some assembly"
    mlen    equ    $-message







Offline Gingerbread Man

  • *High Tech Low-life*
  • Administrator
  • Elite
  • *****
  • Posts: 925
  • Internets: +93/-0
Re: Assembly peeps
« Reply #3 on: August 18, 2016, 10:00:49 PM »
This is my password for Netflix...on Android...that counts right?  8)

Code: [Select]
.data

msg:
    .ascii      "Hello, My Hackers!\n"
len = . - msg


.text

.globl _start
_start:
    /* syscall write(int fd, const void *buf, size_t count) */
    mov     %r0, $1     /* fd -> stdout */
    ldr     %r1, =msg   /* buf -> msg */
    ldr     %r2, =len   /* count -> len(msg) */
    mov     %r7, $4     /* write is syscall #4 */
    swi     $0          /* invoke syscall */
   
    /* syscall exit(int status) */
    mov     %r0, $0     /* status -> 0 */
    mov     %r7, $1     /* exit is syscall #1 */
    swi     $0          /* invoke syscall */

Offline ch3rn0byl

  • Top Hat Member
  • Experienced
  • ********
  • Posts: 185
  • Internets: +1337/-0
  • Grumpy Old Man with Mounds of Salt
Re: Assembly peeps
« Reply #4 on: August 19, 2016, 07:35:50 AM »
Haha!! I think I need to see more. I don't quite understand it ;)
The quieter you become, the more you are unlikely to sound stupid.

Offline ch3rn0byl

  • Top Hat Member
  • Experienced
  • ********
  • Posts: 185
  • Internets: +1337/-0
  • Grumpy Old Man with Mounds of Salt
Re: Assembly peeps
« Reply #5 on: August 19, 2016, 03:03:28 PM »
Are you guys actually learning it? Or are you guys just being assholes haha :)
The quieter you become, the more you are unlikely to sound stupid.

Offline Gingerbread Man

  • *High Tech Low-life*
  • Administrator
  • Elite
  • *****
  • Posts: 925
  • Internets: +93/-0
Re: Assembly peeps
« Reply #6 on: August 22, 2016, 09:38:47 AM »
Oh I am an asshole...you are what you eat after all...;)

But no, I am 'trying' to learn this horrible shit...ARM is where it is at IMO as far as next gen malware goes...

Offline Edi0t

  • Top Hat Member
  • Experienced
  • ********
  • Posts: 122
  • Internets: +12/-1
Re: Assembly peeps
« Reply #7 on: August 22, 2016, 10:37:54 AM »
I'm still trying to learn how to make my computer do that one thing.
#!bin/bash
if [ "Edi0t" = "h4xx0r1n6 73h 61b50n" ]; then
               echo '4ll y0ur b453 4r3 b3l0n6 70 u5'
            else
               echo "d41vd h4553lh0f h4ck5 m0r3 7h3 b3773r 7h4n 3d107"
            fi

Offline ch3rn0byl

  • Top Hat Member
  • Experienced
  • ********
  • Posts: 185
  • Internets: +1337/-0
  • Grumpy Old Man with Mounds of Salt
Re: Assembly peeps
« Reply #8 on: August 22, 2016, 10:53:05 AM »
Ahhhh gotcha. I'm using it for shellcoding. It's pretty amazing what size payloads you get if you craft it yourself. for example, a messagebox on msfvenom is almost 300 bytes, while making one yourself is 29 bytes. HUUUGE DIFFERENCE
The quieter you become, the more you are unlikely to sound stupid.