NPC2000 / elf_to_shellcode

将任何 elf 或命令转换为 shellcode

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

elf_to_shellcode

Convert static linked elf , dynamic linked elf or command to shellcode.

Supporter architectures

  • amd64

Usage:

python3 ./elf_to_shellcode_amd64.py elf command...

Sample:

  1. convert ls to shellcode
python3 ./elf_to_shellcode_amd64.py /bin/ls /bin/ls ./>/tmp/shellcode

then run the shellcode :

root@LAPTOP-UFBOJERU:/elf_to_shellcode_amd64# ./run /tmp/shellcode
elf_to_shellcode_amd64.py  loader_amd64  run
  1. convert busybox to shellcode
python3 ./elf_to_shellcode_amd64.py /bin/busybox sh >/tmp/shellcode

run the shellcode:

root@LAPTOP-UFBOJERU:/elf_to_shellcode_amd64# ./run ./shellcode

BusyBox v1.30.1 (Ubuntu 1:1.30.1-4ubuntu6.4) built-in shell (ash)
Enter 'help' for a list of built-in commands.

/mnt/c/Users/lenovo/Desktop/elf_x_execve_mem/elf_to_shellcode_amd64 #

About

将任何 elf 或命令转换为 shellcode


Languages

Language:C 78.7%Language:Python 10.9%Language:Makefile 6.3%Language:Assembly 4.1%