1bc6bc2cda
Co-authored-by: Chris Gora <34940205+ChrisGora@users.noreply.github.com> Co-authored-by: jack bond-preston <jackbondpreston@outlook.com>
30 lines
698 B
Python
30 lines
698 B
Python
## -*- coding: utf-8 -*-
|
|
##
|
|
## Jonathan Salwan - 2014-05-12 - ROPgadget tool
|
|
##
|
|
## http://twitter.com/JonathanSalwan
|
|
## http://shell-storm.org/project/ROPgadget/
|
|
##
|
|
|
|
import ropgadget.args
|
|
import ropgadget.binary
|
|
import ropgadget.core
|
|
import ropgadget.gadgets
|
|
import ropgadget.options
|
|
import ropgadget.rgutils
|
|
import ropgadget.updateAlert
|
|
import ropgadget.version
|
|
import ropgadget.loaders
|
|
import ropgadget.ropchain
|
|
|
|
def main(arguments=None):
|
|
import sys
|
|
from ropgadget.args import Args
|
|
from ropgadget.core import Core
|
|
try:
|
|
args = Args(arguments)
|
|
except ValueError as e:
|
|
print(e)
|
|
sys.exit(-1)
|
|
sys.exit(0 if Core(args.getArgs()).analyze() else 1)
|