pwntools icon indicating copy to clipboard operation
pwntools copied to clipboard

setresuid: generic implementation for all arches

Open Arusekk opened this issue 3 years ago • 0 comments

Closes #1324

The real uid to set defaults to geteuid() and the remaining uids default to new real uid. Supported usage includes:

  • asm(setresuid() + connect(...) + dupsh())
  • asm(setresuid(0) + connect(...) + dupsh())
  • asm(setresuid(5,6[,5]) + connect(...) + dupsh())
  • asm(setresuid(1,2,3) + connect(...) + dupsh())

Hope this proves useful.

Arusekk avatar Aug 07 '22 10:08 Arusekk