예제 #1
0
파일: apt2.py 프로젝트: MooseDojo/apt2
def main():
    framework = Framework()
    try:
        framework.run(sys.argv[1:])
    except KeyboardInterrupt:
        framework.ctrlc()
    except Exception as e:
        exc_type, exc_value, exc_traceback = sys.exc_info()
        print "*** print_tb:"
        traceback.print_tb(exc_traceback, limit=1, file=sys.stdout)
        print
        print
        print "*** print_exception:"
        traceback.print_exception(exc_type, exc_value, exc_traceback,
                                  limit=2, file=sys.stdout)
        print
        print
        print "*** print_exc:"
        traceback.print_exc()
예제 #2
0
파일: apt2.py 프로젝트: zamil2200/apt2
def main():
    framework = Framework()
    try:
        framework.run(sys.argv[1:])
    except KeyboardInterrupt:
        framework.ctrlc()
    except Exception as e:
        exc_type, exc_value, exc_traceback = sys.exc_info()
        print "*** print_tb:"
        traceback.print_tb(exc_traceback, limit=1, file=sys.stdout)
        print
        print
        print "*** print_exception:"
        traceback.print_exception(exc_type,
                                  exc_value,
                                  exc_traceback,
                                  limit=2,
                                  file=sys.stdout)
        print
        print
        print "*** print_exc:"
        traceback.print_exc()
예제 #3
0
파일: spf.py 프로젝트: DarthRa/SPF
#!/usr/bin/env python
"""
Standard Launcher for the spf (Speed Phishing Framework)
"""

import sys, traceback

from core.framework import Framework

if __name__ == "__main__":
    framework = Framework()
    try:
        framework.run(sys.argv[1:])
    except KeyboardInterrupt:
        framework.ctrlc()
    except Exception as e:
        exc_type, exc_value, exc_traceback = sys.exc_info()
        print "*** print_tb:"
        traceback.print_tb(exc_traceback, limit=1, file=sys.stdout)
        print
        print
        print "*** print_exception:"
        traceback.print_exception(exc_type, exc_value, exc_traceback,
                              limit=2, file=sys.stdout)
        print
        print
        print "*** print_exc:"
        traceback.print_exc()
        #print
        #print
        #print "*** format_exc, first and last line:"
예제 #4
0
#!/usr/bin/env python3
"""
Standard Launcher for the spf (Speed Phishing Framework)
"""

import sys, traceback

from core.framework import Framework

if __name__ == "__main__":
    framework = Framework()
    try:
        framework.run(sys.argv[1:])
    except KeyboardInterrupt:
        framework.ctrlc()
    except Exception as e:
        exc_type, exc_value, exc_traceback = sys.exc_info()
        print("*** print_tb:")
        traceback.print_tb(exc_traceback, limit=1, file=sys.stdout)
        print()
        print()
        print("*** print_exception:")
        traceback.print_exception(exc_type, exc_value, exc_traceback,
                              limit=2, file=sys.stdout)
        print()
        print()
        print("*** print_exc:")
        traceback.print_exc()
        #print
        #print
        #print "*** format_exc, first and last line:"