| skipped 401 lines |
402 | 402 | | "note": "final", |
403 | 403 | | }, |
404 | 404 | | { |
405 | | - | "path": "$WORKSPACE/portscan/screenshot-$OUTPUT.html", |
| 405 | + | "path": "$WORKSPACE/portscan/$OUTPUT.html", |
406 | 406 | | "type": "html", |
407 | 407 | | "note": "final", |
408 | 408 | | }, |
409 | 409 | | { |
410 | | - | "path": "$WORKSPACE/portscan/$OUTPUT-masscan.csv", |
| 410 | + | "path": "$WORKSPACE/portscan/beautify-$OUTPUT.txt", |
411 | 411 | | "type": "bash", |
| 412 | + | "note": "final, slack, diff", |
| 413 | + | }, |
| 414 | + | { |
| 415 | + | "path": "$WORKSPACE/portscan/$OUTPUT-aquatone/aquatone_report.html", |
| 416 | + | "type": "html", |
412 | 417 | | "note": "final", |
413 | 418 | | }, |
414 | 419 | | { |
415 | 420 | | "path": "$WORKSPACE/portscan/screenshot/$OUTPUT-raw-gowitness.html", |
416 | 421 | | "type": "html", |
417 | | - | "note": "", |
| 422 | + | "note": "final", |
418 | 423 | | }, |
419 | 424 | | ] |
420 | 425 | | logs = [] |
421 | 426 | | commands = { |
422 | 427 | | 'general': [ |
423 | 428 | | { |
424 | | - | # "requirement": "$WORKSPACE/formatted/ip-$OUTPUT.txt", |
| 429 | + | "requirement": "$WORKSPACE/probing/ip-$OUTPUT.txt", |
425 | 430 | | "banner": "Masscan 65535 ports", |
426 | | - | "cmd": "$ALIAS_PATH/portscan -i $TARGET -o '$WORKSPACE/portscan/$OUTPUT' -s '$WORKSPACE/portscan/summary.txt' -p '$PLUGINS_PATH'", |
427 | | - | "output_path": "$WORKSPACE/portscan/$OUTPUT.xml", |
| 431 | + | "cmd": "$ALIAS_PATH/portscan -i $WORKSPACE/probing/ip-$OUTPUT.txt -o '$WORKSPACE/portscan/$OUTPUT' -s '$WORKSPACE/portscan/summary.txt' -p '$PLUGINS_PATH'", |
| 432 | + | "output_path": "$WORKSPACE/portscan/$OUTPUT.csv", |
428 | 433 | | "std_path": "", |
429 | 434 | | "waiting": "first", |
430 | 435 | | }, |
| skipped 5 lines |
436 | 441 | | "std_path": "", |
437 | 442 | | "pre_run": "update_ports", |
438 | 443 | | "cleaned_output": "$WORKSPACE/portscan/formatted-$OUTPUT.txt", |
439 | | - | # "waiting": "last", |
440 | 444 | | }, |
441 | 445 | | { |
442 | 446 | | "requirement": "$WORKSPACE/portscan/$OUTPUT.csv", |
443 | | - | "banner": "Screenshot on ports found", |
444 | | - | "cmd": "$GO_PATH/gowitness file -s $WORKSPACE/portscan/scheme-$OUTPUT.txt -t 30 --log-level fatal --destination $WORKSPACE/portscan/screenshot/raw-gowitness/ --db $WORKSPACE/portscan/screenshot/gowitness.db", |
445 | | - | "output_path": "$WORKSPACE/portscan/screenshot/gowitness.db", |
| 447 | + | "banner": "CSV beautify", |
| 448 | + | "cmd": '''cat $WORKSPACE/portscan/$OUTPUT.csv | awk -F',' '{print $1":"$4}' | httprobe -c 30 | tee $WORKSPACE/portscan/http-$OUTPUT.txt''', |
| 449 | + | "output_path": "$WORKSPACE/portscan/http-$OUTPUT.txt", |
446 | 450 | | "std_path": "", |
447 | | - | "post_run": "clean_gowitness", |
448 | | - | "pre_run": "get_scheme", |
449 | | - | "cleaned_output": "$WORKSPACE/portscan/screenshot-$OUTPUT.html", |
| 451 | + | }, |
| 452 | + | { |
| 453 | + | "banner": "aquatone", |
| 454 | + | "cmd": f"cat $WORKSPACE/portscan/http-$OUTPUT.txt | $GO_PATH/aquatone -screenshot-timeout 50000 -threads {threads} -out $WORKSPACE/portscan/$OUTPUT-aquatone", |
| 455 | + | "output_path": "$WORKSPACE/portscan/$OUTPUT-aquatone/aquatone_report.html", |
| 456 | + | "std_path": "$WORKSPACE/portscan/std-$OUTPUT-aquatone.std", |
450 | 457 | | "waiting": "last", |
451 | 458 | | }, |
452 | | - | |
453 | 459 | | ], |
454 | 460 | | } |
455 | 461 | | |
| skipped 136 lines |