Skip to content

zardus/pwnsh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pwnsh

Some shell scripts that are useful for exploitation, though you should really use pwntools instead.

Shellcoding:

  • assemble: build shellcode, assemble shellcode.s or assemble "mov rax, 60; syscall"
  • disassemble: disassemble shellcode, disassemble shellcode.raw or disassemble <(echo -ne '\xcc')
  • analyze: analyzes shellcode, analyze shellcode.elf
  • lookup-syscall: lookup syscall number, lookup-syscall -a i686 read
  • lookup-constant: print the value of a constant (really, any C expression): lookup-constant "PROT_EXEC|PROT_READ|PROT_WRITE"

Misc:

  • run-c: compile a C expression into main and run it, c-run 'puts(argv[1]);' test

Management:

  • setup.sh: add the scripts/ dir to your PATH via .bashrc
  • update-syscalls.sh: update the syscall tables
  • test.sh: some testcases

About

tools for shellcoding

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages