Projects STRLCPY SharPyShell Commits acdcd8d3
🤬
  • ■ ■ ■ ■ ■ ■
    SharPyShell.py
    skipped 152 lines
    153 153   create_interact_parser(subparsers)
    154 154   args = parser.parse_args()
    155 155   
    156  - if args.mode == 'generate':
    157  - generate_obj = Generate(args.password, args.encryption, args.obfuscator, args.endian_type, args.output)
    158  - generate_obj.generate()
     156 + if args.__contains__('mode'):
     157 + if args.mode == 'generate':
     158 + generate_obj = Generate(args.password, args.encryption, args.obfuscator, args.endian_type, args.output)
     159 + generate_obj.generate()
    159 160   
    160  - if args.mode == 'interact':
    161  - prompt = SharPyShellPrompt(args.password, args.encryption, args.default_shell, args.url,
    162  - args.user_agent, args.cookies, args.custom_header, args.insecure, args.proxy)
    163  - prompt.cmdloop('\n')
     161 + if args.mode == 'interact':
     162 + prompt = SharPyShellPrompt(args.password, args.encryption, args.default_shell, args.url,
     163 + args.user_agent, args.cookies, args.custom_header, args.insecure, args.proxy)
     164 + prompt.cmdloop('\n')
     165 + else:
     166 + parser.print_help()
    164 167   
Please wait...
Page is in error, reload to recover