Skip to main content

A terminal UI tool for selecting OneGadgets with syntax highlighting.

Project description

onegadget-selector 🚀

PyPI version License: MIT Python 3.7+

简单的 onegadget 小工具,建议配合 libcdb 食用


安装

pip install onegadget-selector

用法

show_onegadgets

from pwn import *
from onegadget_selector import *

'''
省略...
'''

libc = ELF(libcdb.search_by_symbol_offsets({'__libc_start_main': __libc_start_main_addr % 0x1000}))
show_onegadgets(libc.path)

'''
省略...
'''

select_onegadgets

from pwn import *
from onegadget_selector import *

'''
省略...
'''

libc = ELF(libcdb.search_by_symbol_offsets({'__libc_start_main': __libc_start_main_addr % 0x1000}))
base_addr = __libc_start_main_addr - libc.symbols['__libc_start_main']
one_gadget_offset = select_onegadgets(libc.path)
one_gadget_addr = base_addr + one_gadget_offset

'''
省略...
'''

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

onegadget_selector-0.1.2.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

onegadget_selector-0.1.2-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file onegadget_selector-0.1.2.tar.gz.

File metadata

  • Download URL: onegadget_selector-0.1.2.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.19

File hashes

Hashes for onegadget_selector-0.1.2.tar.gz
Algorithm Hash digest
SHA256 19299ebe731734a0e2fafe42c331228b24919a7b133460bf5d47bcef54aa2d9b
MD5 22f01309f0dec59f0d198d9f5187de96
BLAKE2b-256 2e069b8fab5c69bf43f396a80079c7a6dae2d3082871537064f718843f683ca8

See more details on using hashes here.

File details

Details for the file onegadget_selector-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for onegadget_selector-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e38a99b3e099a61c12f0a6ba130a96834ff07f27587d2ac540b279a2f2b8fade
MD5 44646bbf004207c1ee766f9341ff1a28
BLAKE2b-256 5e01ad8938e39df356abb21797bcde4ae622e2732c2a0be63f5a1d1ebff25849

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page