2020-11-25 15:38:46 +00:00
|
|
|
## -*- 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
|
|
|
|
|
2020-11-25 18:55:01 +00:00
|
|
|
def main(arguments=None):
|
2020-11-25 15:38:46 +00:00
|
|
|
import sys
|
|
|
|
from ropgadget.args import Args
|
|
|
|
from ropgadget.core import Core
|
|
|
|
try:
|
2020-11-25 18:55:01 +00:00
|
|
|
args = Args(arguments)
|
2020-11-25 15:38:46 +00:00
|
|
|
except ValueError as e:
|
|
|
|
print(e)
|
|
|
|
sys.exit(-1)
|
|
|
|
sys.exit(0 if Core(args.getArgs()).analyze() else 1)
|