| skipped 275 lines |
276 | 276 | | else: |
277 | 277 | | ip = None |
278 | 278 | | |
279 | | - | #getting proxy from args |
280 | | - | proxy = args.proxy if args.proxy else None |
281 | | - | proxy_file = args.proxy_file if args.proxy_file else None |
| 279 | + | try: |
| 280 | + | #getting proxy from args |
| 281 | + | proxy = args.proxy if args.proxy else None |
| 282 | + | proxy_file = args.proxy_file if args.proxy_file else None |
282 | 283 | | |
283 | | - | config.set('Proxy', 'proxy', str(proxy)) |
284 | | - | config.set('Proxy', 'proxy_file', str(proxy_file)) |
| 284 | + | config.set('Proxy', 'proxy', str(proxy)) |
| 285 | + | config.set('Proxy', 'proxy_file', str(proxy_file)) |
285 | 286 | | |
286 | | - | if config['Proxy']['proxy_cmd'] == 'None': |
287 | | - | #only works for Kali proxychains, change it if you on other OS |
288 | | - | proxy_cmd = "proxychains -f {0}".format(proxy_file) |
289 | | - | config.set('Proxy', 'proxy_cmd', str(proxy_cmd)) |
| 287 | + | if config['Proxy']['proxy_cmd'] == 'None': |
| 288 | + | #only works for Kali proxychains, change it if you on other OS |
| 289 | + | proxy_cmd = "proxychains -f {0}".format(proxy_file) |
| 290 | + | config.set('Proxy', 'proxy_cmd', str(proxy_cmd)) |
| 291 | + | except: |
| 292 | + | utils.print_info("Your config file seem to be outdated, Backup it and delete it to regenerate the new one") |
290 | 293 | | |
291 | 294 | | |
292 | 295 | | config.set('Target', 'input', str(direct_input)) |
| skipped 46 lines |
339 | 342 | | |
340 | 343 | | ###### |
341 | 344 | | #parsing proxy stuff |
342 | | - | proxy_parsing(options) |
| 345 | + | if options.get('PROXY') or options.get('PROXY_FILE'): |
| 346 | + | proxy_parsing(options) |
| 347 | + | else: |
| 348 | + | #just for the old config |
| 349 | + | options['PROXY'] = "None" |
| 350 | + | options['PROXY_FILE'] = "None" |
343 | 351 | | |
344 | 352 | | return options |
345 | 353 | | |
| skipped 1 lines |