pwn 0.4.594 → 0.4.596
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- metadata +10 -998
- data/.github/FUNDING.yml +0 -1
- data/.github/ISSUE_TEMPLATE/bug_report.md +0 -38
- data/.gitignore +0 -62
- data/.rubocop.yml +0 -14
- data/.rubocop_todo.yml +0 -117
- data/.ruby-gemset +0 -1
- data/.ruby-version +0 -1
- data/.travis.yml +0 -24
- data/CHANGELOG_BETWEEN_TAGS.txt +0 -108
- data/CODE_OF_CONDUCT.md +0 -46
- data/CONTRIBUTING.md +0 -10
- data/Gemfile +0 -86
- data/LICENSE.txt +0 -22
- data/README.md +0 -84
- data/Rakefile +0 -20
- data/Vagrantfile +0 -250
- data/bin/pwn +0 -101
- data/bin/pwn_android_war_dialer +0 -161
- data/bin/pwn_arachni +0 -157
- data/bin/pwn_arachni_rest +0 -174
- data/bin/pwn_autoinc_version +0 -58
- data/bin/pwn_aws_describe_resources +0 -728
- data/bin/pwn_burp_suite_pro_active_scan +0 -113
- data/bin/pwn_char_base64_encoding +0 -24
- data/bin/pwn_char_dec_encoding +0 -23
- data/bin/pwn_char_hex_escaped_encoding +0 -26
- data/bin/pwn_char_html_entity_encoding +0 -24
- data/bin/pwn_char_unicode_escaped_encoding +0 -23
- data/bin/pwn_char_url_encoding +0 -24
- data/bin/pwn_defectdojo_engagement_create +0 -158
- data/bin/pwn_defectdojo_importscan +0 -104
- data/bin/pwn_defectdojo_reimportscan +0 -104
- data/bin/pwn_domain_reversewhois +0 -89
- data/bin/pwn_fuzz_net_app_proto +0 -160
- data/bin/pwn_ibm_appscan_enterprise +0 -112
- data/bin/pwn_jenkins_create_job +0 -68
- data/bin/pwn_jenkins_create_view +0 -68
- data/bin/pwn_jenkins_install_plugin +0 -91
- data/bin/pwn_jenkins_thinBackup_aws_s3 +0 -123
- data/bin/pwn_jenkins_update_plugins +0 -87
- data/bin/pwn_jenkins_useradd +0 -86
- data/bin/pwn_mail_agent +0 -127
- data/bin/pwn_msf_postgres_login +0 -28
- data/bin/pwn_nessus_cloud_scan_crud +0 -345
- data/bin/pwn_nessus_cloud_vulnscan +0 -99
- data/bin/pwn_nexpose +0 -52
- data/bin/pwn_openvas_vulnscan +0 -102
- data/bin/pwn_owasp_zap_active_scan +0 -134
- data/bin/pwn_pastebin_sample_filter +0 -61
- data/bin/pwn_perimeter_recon +0 -326
- data/bin/pwn_phone +0 -131
- data/bin/pwn_sast +0 -183
- data/bin/pwn_serial_check_voicemail +0 -66
- data/bin/pwn_serial_msr206 +0 -175
- data/bin/pwn_serial_qualcomm_commands +0 -16
- data/bin/pwn_serial_son_micro_sm132_rfid +0 -132
- data/bin/pwn_shodan_search +0 -79
- data/bin/pwn_simple_http_server +0 -57
- data/bin/pwn_web_cache_deception +0 -233
- data/bin/pwn_www_checkip +0 -62
- data/bin/pwn_www_uri_buster +0 -237
- data/bin/pwn_xss_dom_vectors +0 -169
- data/build_pwn_gem.sh +0 -29
- data/documentation/PWN.png +0 -0
- data/documentation/PWN_Contributors_and_Users.png +0 -0
- data/documentation/fax-spectrogram.png +0 -0
- data/documentation/fax-waveform.png +0 -0
- data/documentation/pwn_android_war_dialer_session.png +0 -0
- data/documentation/pwn_install.png +0 -0
- data/documentation/pwn_wallpaper.jpg +0 -0
- data/documentation/ringing-spectrogram.png +0 -0
- data/documentation/ringing-waveform.png +0 -0
- data/etc/systemd/msfrpcd.service +0 -12
- data/etc/systemd/openvas.service +0 -14
- data/etc/userland/aws/apache2/jenkins_443.conf +0 -90
- data/etc/userland/aws/apache2/jenkins_80.conf +0 -7
- data/etc/userland/aws/apache2/openvas_443.conf +0 -87
- data/etc/userland/aws/apache2/openvas_80.conf +0 -7
- data/etc/userland/aws/apache2/sast_443.conf +0 -87
- data/etc/userland/aws/apache2/sast_80.conf +0 -9
- data/etc/userland/aws/apache2/vagrant.yaml.EXAMPLE +0 -9
- data/etc/userland/aws/arachni/navigation-REST.instruct.EXAMPLE +0 -29
- data/etc/userland/aws/arachni/navigation.instruct.EXAMPLE +0 -3
- data/etc/userland/aws/burpsuite/navigation.instruct.EXAMPLE +0 -3
- data/etc/userland/aws/burpsuite/vagrant.yaml.EXAMPLE +0 -2
- data/etc/userland/aws/defectdojo/vagrant.yaml.EXAMPLE +0 -3
- data/etc/userland/aws/jenkins/inject_build_envs.sh +0 -15
- data/etc/userland/aws/jenkins/jenkins +0 -81
- data/etc/userland/aws/jenkins/jobs/pipeline-pwntemplate.xml +0 -298
- data/etc/userland/aws/jenkins/jobs/pipeline-selfupdate.xml +0 -462
- data/etc/userland/aws/jenkins/jobs/pwntemplate-DOMAIN-arachni.xml +0 -35
- data/etc/userland/aws/jenkins/jobs/pwntemplate-DOMAIN-burpsuite.xml +0 -44
- data/etc/userland/aws/jenkins/jobs/pwntemplate-DOMAIN-owasp_zap.xml +0 -35
- data/etc/userland/aws/jenkins/jobs/pwntemplate-DOMAIN-ssllabs-scan.xml +0 -45
- data/etc/userland/aws/jenkins/jobs/pwntemplate-GITREPO_BRANCH-sast.xml +0 -71
- data/etc/userland/aws/jenkins/jobs/pwntemplate-NETWORKRANGE-nmap_discovery_scan_tcp_udp_65k.xml +0 -56
- data/etc/userland/aws/jenkins/jobs/pwntemplate-NETWORKRANGE-nmap_xml_results_searchsploit.xml +0 -59
- data/etc/userland/aws/jenkins/jobs/pwntemplate-NETWORKRANGE-openvas.xml +0 -45
- data/etc/userland/aws/jenkins/jobs/selfupdate-exploit-db.xml +0 -43
- data/etc/userland/aws/jenkins/jobs/selfupdate-gem.xml +0 -42
- data/etc/userland/aws/jenkins/jobs/selfupdate-jenkins_plugins.xml +0 -42
- data/etc/userland/aws/jenkins/jobs/selfupdate-metasploit.xml +0 -42
- data/etc/userland/aws/jenkins/jobs/selfupdate-nmap_all_live_hosts.xml +0 -42
- data/etc/userland/aws/jenkins/jobs/selfupdate-openvas_sync.xml +0 -42
- data/etc/userland/aws/jenkins/jobs/selfupdate-openvas_wrappers.xml +0 -42
- data/etc/userland/aws/jenkins/jobs/selfupdate-os.xml +0 -42
- data/etc/userland/aws/jenkins/jobs/selfupdate-pwn.xml +0 -42
- data/etc/userland/aws/jenkins/jobs/selfupdate-rvm.xml +0 -42
- data/etc/userland/aws/jenkins/jobs/selfupdate-ssllabs-scan.xml +0 -42
- data/etc/userland/aws/jenkins/jobs/selfupdate-wpscan.xml +0 -42
- data/etc/userland/aws/jenkins/jobs_userland/.gitkeep +0 -0
- data/etc/userland/aws/jenkins/log_parser_rules/arachni.rules +0 -5
- data/etc/userland/aws/jenkins/log_parser_rules/sast.rules +0 -2
- data/etc/userland/aws/jenkins/log_parser_rules/self_update.rules +0 -14
- data/etc/userland/aws/jenkins/log_parser_rules/ssllabs-scan.rules +0 -8
- data/etc/userland/aws/jenkins/log_parser_rules/system_maintenance.rules +0 -9
- data/etc/userland/aws/jenkins/log_parser_rules/wpscan.rules +0 -2
- data/etc/userland/aws/jenkins/vagrant.yaml.EXAMPLE +0 -8
- data/etc/userland/aws/letsencrypt/vagrant.yaml.EXAMPLE +0 -5
- data/etc/userland/aws/metasploit/vagrant.yaml.EXAMPLE +0 -4
- data/etc/userland/aws/nessus/vagrant.yaml.EXAMPLE +0 -15
- data/etc/userland/aws/openvas/vagrant.yaml.EXAMPLE +0 -2
- data/etc/userland/aws/owasp_zap/navigation.instruct.EXAMPLE +0 -3
- data/etc/userland/aws/postgres/vagrant.yaml.EXAMPLE +0 -2
- data/etc/userland/aws/recon-ng/vagrant.yaml.EXAMPLE +0 -52
- data/etc/userland/aws/vagrant.yaml.EXAMPLE +0 -35
- data/etc/userland/docker/apache2/jenkins_443.conf +0 -90
- data/etc/userland/docker/apache2/jenkins_80.conf +0 -7
- data/etc/userland/docker/apache2/openvas_443.conf +0 -87
- data/etc/userland/docker/apache2/openvas_80.conf +0 -7
- data/etc/userland/docker/apache2/sast_443.conf +0 -87
- data/etc/userland/docker/apache2/sast_80.conf +0 -9
- data/etc/userland/docker/apache2/vagrant.yaml.EXAMPLE +0 -9
- data/etc/userland/docker/arachni/navigation-REST.instruct.EXAMPLE +0 -29
- data/etc/userland/docker/arachni/navigation.instruct.EXAMPLE +0 -3
- data/etc/userland/docker/burpsuite/navigation.instruct.EXAMPLE +0 -3
- data/etc/userland/docker/burpsuite/vagrant.yaml.EXAMPLE +0 -2
- data/etc/userland/docker/defectdojo/vagrant.yaml.EXAMPLE +0 -3
- data/etc/userland/docker/jenkins/inject_build_envs.sh +0 -15
- data/etc/userland/docker/jenkins/jenkins +0 -81
- data/etc/userland/docker/jenkins/jobs/pipeline-pwntemplate.xml +0 -298
- data/etc/userland/docker/jenkins/jobs/pipeline-selfupdate.xml +0 -462
- data/etc/userland/docker/jenkins/jobs/pwntemplate-DOMAIN-arachni.xml +0 -35
- data/etc/userland/docker/jenkins/jobs/pwntemplate-DOMAIN-burpsuite.xml +0 -44
- data/etc/userland/docker/jenkins/jobs/pwntemplate-DOMAIN-owasp_zap.xml +0 -35
- data/etc/userland/docker/jenkins/jobs/pwntemplate-DOMAIN-ssllabs-scan.xml +0 -45
- data/etc/userland/docker/jenkins/jobs/pwntemplate-GITREPO_BRANCH-sast.xml +0 -71
- data/etc/userland/docker/jenkins/jobs/pwntemplate-NETWORKRANGE-nmap_discovery_scan_tcp_udp_65k.xml +0 -56
- data/etc/userland/docker/jenkins/jobs/pwntemplate-NETWORKRANGE-nmap_xml_results_searchsploit.xml +0 -59
- data/etc/userland/docker/jenkins/jobs/pwntemplate-NETWORKRANGE-openvas.xml +0 -45
- data/etc/userland/docker/jenkins/jobs/selfupdate-exploit-db.xml +0 -43
- data/etc/userland/docker/jenkins/jobs/selfupdate-gem.xml +0 -42
- data/etc/userland/docker/jenkins/jobs/selfupdate-jenkins_plugins.xml +0 -42
- data/etc/userland/docker/jenkins/jobs/selfupdate-metasploit.xml +0 -42
- data/etc/userland/docker/jenkins/jobs/selfupdate-nmap_all_live_hosts.xml +0 -42
- data/etc/userland/docker/jenkins/jobs/selfupdate-openvas_sync.xml +0 -42
- data/etc/userland/docker/jenkins/jobs/selfupdate-openvas_wrappers.xml +0 -42
- data/etc/userland/docker/jenkins/jobs/selfupdate-os.xml +0 -42
- data/etc/userland/docker/jenkins/jobs/selfupdate-pwn.xml +0 -42
- data/etc/userland/docker/jenkins/jobs/selfupdate-rvm.xml +0 -42
- data/etc/userland/docker/jenkins/jobs/selfupdate-ssllabs-scan.xml +0 -42
- data/etc/userland/docker/jenkins/jobs/selfupdate-wpscan.xml +0 -42
- data/etc/userland/docker/jenkins/jobs_userland/.gitkeep +0 -0
- data/etc/userland/docker/jenkins/log_parser_rules/arachni.rules +0 -5
- data/etc/userland/docker/jenkins/log_parser_rules/sast.rules +0 -2
- data/etc/userland/docker/jenkins/log_parser_rules/self_update.rules +0 -14
- data/etc/userland/docker/jenkins/log_parser_rules/ssllabs-scan.rules +0 -8
- data/etc/userland/docker/jenkins/log_parser_rules/system_maintenance.rules +0 -9
- data/etc/userland/docker/jenkins/log_parser_rules/wpscan.rules +0 -2
- data/etc/userland/docker/jenkins/vagrant.yaml.EXAMPLE +0 -8
- data/etc/userland/docker/letsencrypt/vagrant.yaml.EXAMPLE +0 -5
- data/etc/userland/docker/metasploit/vagrant.yaml.EXAMPLE +0 -4
- data/etc/userland/docker/nessus/vagrant.yaml.EXAMPLE +0 -15
- data/etc/userland/docker/openvas/vagrant.yaml.EXAMPLE +0 -2
- data/etc/userland/docker/owasp_zap/navigation.instruct.EXAMPLE +0 -3
- data/etc/userland/docker/postgres/vagrant.yaml.EXAMPLE +0 -2
- data/etc/userland/docker/recon-ng/vagrant.yaml.EXAMPLE +0 -52
- data/etc/userland/qemu/apache2/jenkins_443.conf +0 -90
- data/etc/userland/qemu/apache2/jenkins_80.conf +0 -7
- data/etc/userland/qemu/apache2/openvas_443.conf +0 -87
- data/etc/userland/qemu/apache2/openvas_80.conf +0 -7
- data/etc/userland/qemu/apache2/sast_443.conf +0 -87
- data/etc/userland/qemu/apache2/sast_80.conf +0 -9
- data/etc/userland/qemu/apache2/vagrant.yaml.EXAMPLE +0 -9
- data/etc/userland/qemu/arachni/navigation-REST.instruct.EXAMPLE +0 -29
- data/etc/userland/qemu/arachni/navigation.instruct.EXAMPLE +0 -3
- data/etc/userland/qemu/burpsuite/navigation.instruct.EXAMPLE +0 -3
- data/etc/userland/qemu/burpsuite/vagrant.yaml.EXAMPLE +0 -2
- data/etc/userland/qemu/defectdojo/vagrant.yaml.EXAMPLE +0 -3
- data/etc/userland/qemu/jenkins/inject_build_envs.sh +0 -15
- data/etc/userland/qemu/jenkins/jenkins +0 -81
- data/etc/userland/qemu/jenkins/jobs/pipeline-pwntemplate.xml +0 -298
- data/etc/userland/qemu/jenkins/jobs/pipeline-selfupdate.xml +0 -462
- data/etc/userland/qemu/jenkins/jobs/pwntemplate-DOMAIN-arachni.xml +0 -35
- data/etc/userland/qemu/jenkins/jobs/pwntemplate-DOMAIN-burpsuite.xml +0 -44
- data/etc/userland/qemu/jenkins/jobs/pwntemplate-DOMAIN-owasp_zap.xml +0 -35
- data/etc/userland/qemu/jenkins/jobs/pwntemplate-DOMAIN-ssllabs-scan.xml +0 -45
- data/etc/userland/qemu/jenkins/jobs/pwntemplate-GITREPO_BRANCH-sast.xml +0 -71
- data/etc/userland/qemu/jenkins/jobs/pwntemplate-NETWORKRANGE-nmap_discovery_scan_tcp_udp_65k.xml +0 -56
- data/etc/userland/qemu/jenkins/jobs/pwntemplate-NETWORKRANGE-nmap_xml_results_searchsploit.xml +0 -59
- data/etc/userland/qemu/jenkins/jobs/pwntemplate-NETWORKRANGE-openvas.xml +0 -45
- data/etc/userland/qemu/jenkins/jobs/selfupdate-exploit-db.xml +0 -43
- data/etc/userland/qemu/jenkins/jobs/selfupdate-gem.xml +0 -42
- data/etc/userland/qemu/jenkins/jobs/selfupdate-jenkins_plugins.xml +0 -42
- data/etc/userland/qemu/jenkins/jobs/selfupdate-metasploit.xml +0 -42
- data/etc/userland/qemu/jenkins/jobs/selfupdate-nmap_all_live_hosts.xml +0 -42
- data/etc/userland/qemu/jenkins/jobs/selfupdate-openvas_sync.xml +0 -42
- data/etc/userland/qemu/jenkins/jobs/selfupdate-openvas_wrappers.xml +0 -42
- data/etc/userland/qemu/jenkins/jobs/selfupdate-os.xml +0 -42
- data/etc/userland/qemu/jenkins/jobs/selfupdate-pwn.xml +0 -42
- data/etc/userland/qemu/jenkins/jobs/selfupdate-rvm.xml +0 -42
- data/etc/userland/qemu/jenkins/jobs/selfupdate-ssllabs-scan.xml +0 -42
- data/etc/userland/qemu/jenkins/jobs/selfupdate-wpscan.xml +0 -42
- data/etc/userland/qemu/jenkins/jobs_userland/.gitkeep +0 -0
- data/etc/userland/qemu/jenkins/log_parser_rules/arachni.rules +0 -5
- data/etc/userland/qemu/jenkins/log_parser_rules/sast.rules +0 -2
- data/etc/userland/qemu/jenkins/log_parser_rules/self_update.rules +0 -14
- data/etc/userland/qemu/jenkins/log_parser_rules/ssllabs-scan.rules +0 -8
- data/etc/userland/qemu/jenkins/log_parser_rules/system_maintenance.rules +0 -9
- data/etc/userland/qemu/jenkins/log_parser_rules/wpscan.rules +0 -2
- data/etc/userland/qemu/jenkins/vagrant.yaml.EXAMPLE +0 -8
- data/etc/userland/qemu/letsencrypt/vagrant.yaml.EXAMPLE +0 -5
- data/etc/userland/qemu/metasploit/vagrant.yaml.EXAMPLE +0 -4
- data/etc/userland/qemu/nessus/vagrant.yaml.EXAMPLE +0 -15
- data/etc/userland/qemu/openvas/vagrant.yaml.EXAMPLE +0 -2
- data/etc/userland/qemu/owasp_zap/navigation.instruct.EXAMPLE +0 -3
- data/etc/userland/qemu/postgres/vagrant.yaml.EXAMPLE +0 -2
- data/etc/userland/qemu/recon-ng/vagrant.yaml.EXAMPLE +0 -52
- data/etc/userland/ruby-gem/apache2/jenkins_443.conf +0 -90
- data/etc/userland/ruby-gem/apache2/jenkins_80.conf +0 -7
- data/etc/userland/ruby-gem/apache2/openvas_443.conf +0 -87
- data/etc/userland/ruby-gem/apache2/openvas_80.conf +0 -7
- data/etc/userland/ruby-gem/apache2/sast_443.conf +0 -87
- data/etc/userland/ruby-gem/apache2/sast_80.conf +0 -9
- data/etc/userland/ruby-gem/apache2/vagrant.yaml.EXAMPLE +0 -9
- data/etc/userland/ruby-gem/arachni/navigation-REST.instruct.EXAMPLE +0 -29
- data/etc/userland/ruby-gem/arachni/navigation.instruct.EXAMPLE +0 -3
- data/etc/userland/ruby-gem/burpsuite/navigation.instruct.EXAMPLE +0 -3
- data/etc/userland/ruby-gem/burpsuite/vagrant.yaml.EXAMPLE +0 -2
- data/etc/userland/ruby-gem/defectdojo/vagrant.yaml.EXAMPLE +0 -3
- data/etc/userland/ruby-gem/jenkins/inject_build_envs.sh +0 -15
- data/etc/userland/ruby-gem/jenkins/jenkins +0 -81
- data/etc/userland/ruby-gem/jenkins/jobs/pipeline-pwntemplate.xml +0 -298
- data/etc/userland/ruby-gem/jenkins/jobs/pipeline-selfupdate.xml +0 -462
- data/etc/userland/ruby-gem/jenkins/jobs/pwntemplate-DOMAIN-arachni.xml +0 -35
- data/etc/userland/ruby-gem/jenkins/jobs/pwntemplate-DOMAIN-burpsuite.xml +0 -44
- data/etc/userland/ruby-gem/jenkins/jobs/pwntemplate-DOMAIN-owasp_zap.xml +0 -35
- data/etc/userland/ruby-gem/jenkins/jobs/pwntemplate-DOMAIN-ssllabs-scan.xml +0 -45
- data/etc/userland/ruby-gem/jenkins/jobs/pwntemplate-GITREPO_BRANCH-sast.xml +0 -71
- data/etc/userland/ruby-gem/jenkins/jobs/pwntemplate-NETWORKRANGE-nmap_discovery_scan_tcp_udp_65k.xml +0 -56
- data/etc/userland/ruby-gem/jenkins/jobs/pwntemplate-NETWORKRANGE-nmap_xml_results_searchsploit.xml +0 -59
- data/etc/userland/ruby-gem/jenkins/jobs/pwntemplate-NETWORKRANGE-openvas.xml +0 -45
- data/etc/userland/ruby-gem/jenkins/jobs/selfupdate-exploit-db.xml +0 -43
- data/etc/userland/ruby-gem/jenkins/jobs/selfupdate-gem.xml +0 -42
- data/etc/userland/ruby-gem/jenkins/jobs/selfupdate-jenkins_plugins.xml +0 -42
- data/etc/userland/ruby-gem/jenkins/jobs/selfupdate-metasploit.xml +0 -42
- data/etc/userland/ruby-gem/jenkins/jobs/selfupdate-nmap_all_live_hosts.xml +0 -42
- data/etc/userland/ruby-gem/jenkins/jobs/selfupdate-openvas_sync.xml +0 -42
- data/etc/userland/ruby-gem/jenkins/jobs/selfupdate-openvas_wrappers.xml +0 -42
- data/etc/userland/ruby-gem/jenkins/jobs/selfupdate-os.xml +0 -42
- data/etc/userland/ruby-gem/jenkins/jobs/selfupdate-pwn.xml +0 -42
- data/etc/userland/ruby-gem/jenkins/jobs/selfupdate-rvm.xml +0 -42
- data/etc/userland/ruby-gem/jenkins/jobs/selfupdate-ssllabs-scan.xml +0 -42
- data/etc/userland/ruby-gem/jenkins/jobs/selfupdate-wpscan.xml +0 -42
- data/etc/userland/ruby-gem/jenkins/jobs_userland/.gitkeep +0 -0
- data/etc/userland/ruby-gem/jenkins/log_parser_rules/arachni.rules +0 -5
- data/etc/userland/ruby-gem/jenkins/log_parser_rules/sast.rules +0 -2
- data/etc/userland/ruby-gem/jenkins/log_parser_rules/self_update.rules +0 -14
- data/etc/userland/ruby-gem/jenkins/log_parser_rules/ssllabs-scan.rules +0 -8
- data/etc/userland/ruby-gem/jenkins/log_parser_rules/system_maintenance.rules +0 -9
- data/etc/userland/ruby-gem/jenkins/log_parser_rules/wpscan.rules +0 -2
- data/etc/userland/ruby-gem/jenkins/vagrant.yaml.EXAMPLE +0 -8
- data/etc/userland/ruby-gem/letsencrypt/vagrant.yaml.EXAMPLE +0 -5
- data/etc/userland/ruby-gem/metasploit/vagrant.yaml.EXAMPLE +0 -4
- data/etc/userland/ruby-gem/nessus/vagrant.yaml.EXAMPLE +0 -15
- data/etc/userland/ruby-gem/openvas/vagrant.yaml.EXAMPLE +0 -2
- data/etc/userland/ruby-gem/owasp_zap/navigation.instruct.EXAMPLE +0 -3
- data/etc/userland/ruby-gem/postgres/vagrant.yaml.EXAMPLE +0 -2
- data/etc/userland/ruby-gem/recon-ng/vagrant.yaml.EXAMPLE +0 -52
- data/etc/userland/virtualbox/apache2/jenkins_443.conf +0 -90
- data/etc/userland/virtualbox/apache2/jenkins_80.conf +0 -7
- data/etc/userland/virtualbox/apache2/openvas_443.conf +0 -87
- data/etc/userland/virtualbox/apache2/openvas_80.conf +0 -7
- data/etc/userland/virtualbox/apache2/sast_443.conf +0 -87
- data/etc/userland/virtualbox/apache2/sast_80.conf +0 -9
- data/etc/userland/virtualbox/apache2/vagrant.yaml.EXAMPLE +0 -9
- data/etc/userland/virtualbox/arachni/navigation-REST.instruct.EXAMPLE +0 -29
- data/etc/userland/virtualbox/arachni/navigation.instruct.EXAMPLE +0 -3
- data/etc/userland/virtualbox/burpsuite/navigation.instruct.EXAMPLE +0 -3
- data/etc/userland/virtualbox/burpsuite/vagrant.yaml.EXAMPLE +0 -2
- data/etc/userland/virtualbox/defectdojo/vagrant.yaml.EXAMPLE +0 -3
- data/etc/userland/virtualbox/jenkins/inject_build_envs.sh +0 -15
- data/etc/userland/virtualbox/jenkins/jenkins +0 -81
- data/etc/userland/virtualbox/jenkins/jobs/pipeline-pwntemplate.xml +0 -298
- data/etc/userland/virtualbox/jenkins/jobs/pipeline-selfupdate.xml +0 -462
- data/etc/userland/virtualbox/jenkins/jobs/pwntemplate-DOMAIN-arachni.xml +0 -35
- data/etc/userland/virtualbox/jenkins/jobs/pwntemplate-DOMAIN-burpsuite.xml +0 -44
- data/etc/userland/virtualbox/jenkins/jobs/pwntemplate-DOMAIN-owasp_zap.xml +0 -35
- data/etc/userland/virtualbox/jenkins/jobs/pwntemplate-DOMAIN-ssllabs-scan.xml +0 -45
- data/etc/userland/virtualbox/jenkins/jobs/pwntemplate-GITREPO_BRANCH-sast.xml +0 -71
- data/etc/userland/virtualbox/jenkins/jobs/pwntemplate-NETWORKRANGE-nmap_discovery_scan_tcp_udp_65k.xml +0 -56
- data/etc/userland/virtualbox/jenkins/jobs/pwntemplate-NETWORKRANGE-nmap_xml_results_searchsploit.xml +0 -59
- data/etc/userland/virtualbox/jenkins/jobs/pwntemplate-NETWORKRANGE-openvas.xml +0 -45
- data/etc/userland/virtualbox/jenkins/jobs/selfupdate-exploit-db.xml +0 -43
- data/etc/userland/virtualbox/jenkins/jobs/selfupdate-gem.xml +0 -42
- data/etc/userland/virtualbox/jenkins/jobs/selfupdate-jenkins_plugins.xml +0 -42
- data/etc/userland/virtualbox/jenkins/jobs/selfupdate-metasploit.xml +0 -42
- data/etc/userland/virtualbox/jenkins/jobs/selfupdate-nmap_all_live_hosts.xml +0 -42
- data/etc/userland/virtualbox/jenkins/jobs/selfupdate-openvas_sync.xml +0 -42
- data/etc/userland/virtualbox/jenkins/jobs/selfupdate-openvas_wrappers.xml +0 -42
- data/etc/userland/virtualbox/jenkins/jobs/selfupdate-os.xml +0 -42
- data/etc/userland/virtualbox/jenkins/jobs/selfupdate-pwn.xml +0 -42
- data/etc/userland/virtualbox/jenkins/jobs/selfupdate-rvm.xml +0 -42
- data/etc/userland/virtualbox/jenkins/jobs/selfupdate-ssllabs-scan.xml +0 -42
- data/etc/userland/virtualbox/jenkins/jobs/selfupdate-wpscan.xml +0 -42
- data/etc/userland/virtualbox/jenkins/jobs_userland/.gitkeep +0 -0
- data/etc/userland/virtualbox/jenkins/log_parser_rules/arachni.rules +0 -5
- data/etc/userland/virtualbox/jenkins/log_parser_rules/sast.rules +0 -2
- data/etc/userland/virtualbox/jenkins/log_parser_rules/self_update.rules +0 -14
- data/etc/userland/virtualbox/jenkins/log_parser_rules/ssllabs-scan.rules +0 -8
- data/etc/userland/virtualbox/jenkins/log_parser_rules/system_maintenance.rules +0 -9
- data/etc/userland/virtualbox/jenkins/log_parser_rules/wpscan.rules +0 -2
- data/etc/userland/virtualbox/jenkins/vagrant.yaml.EXAMPLE +0 -8
- data/etc/userland/virtualbox/letsencrypt/vagrant.yaml.EXAMPLE +0 -5
- data/etc/userland/virtualbox/metasploit/vagrant.yaml.EXAMPLE +0 -4
- data/etc/userland/virtualbox/nessus/vagrant.yaml.EXAMPLE +0 -15
- data/etc/userland/virtualbox/openvas/vagrant.yaml.EXAMPLE +0 -2
- data/etc/userland/virtualbox/owasp_zap/navigation.instruct.EXAMPLE +0 -3
- data/etc/userland/virtualbox/postgres/vagrant.yaml.EXAMPLE +0 -2
- data/etc/userland/virtualbox/recon-ng/vagrant.yaml.EXAMPLE +0 -52
- data/etc/userland/virtualbox/vagrant.yaml.EXAMPLE +0 -4
- data/etc/userland/vmware/apache2/jenkins_443.conf +0 -90
- data/etc/userland/vmware/apache2/jenkins_80.conf +0 -7
- data/etc/userland/vmware/apache2/openvas_443.conf +0 -87
- data/etc/userland/vmware/apache2/openvas_80.conf +0 -7
- data/etc/userland/vmware/apache2/sast_443.conf +0 -87
- data/etc/userland/vmware/apache2/sast_80.conf +0 -9
- data/etc/userland/vmware/apache2/vagrant.yaml.EXAMPLE +0 -9
- data/etc/userland/vmware/arachni/navigation-REST.instruct.EXAMPLE +0 -29
- data/etc/userland/vmware/arachni/navigation.instruct.EXAMPLE +0 -3
- data/etc/userland/vmware/burpsuite/navigation.instruct.EXAMPLE +0 -3
- data/etc/userland/vmware/burpsuite/vagrant.yaml.EXAMPLE +0 -2
- data/etc/userland/vmware/defectdojo/vagrant.yaml.EXAMPLE +0 -3
- data/etc/userland/vmware/jenkins/inject_build_envs.sh +0 -15
- data/etc/userland/vmware/jenkins/jenkins +0 -81
- data/etc/userland/vmware/jenkins/jobs/pipeline-pwntemplate.xml +0 -298
- data/etc/userland/vmware/jenkins/jobs/pipeline-selfupdate.xml +0 -462
- data/etc/userland/vmware/jenkins/jobs/pwntemplate-DOMAIN-arachni.xml +0 -35
- data/etc/userland/vmware/jenkins/jobs/pwntemplate-DOMAIN-burpsuite.xml +0 -44
- data/etc/userland/vmware/jenkins/jobs/pwntemplate-DOMAIN-owasp_zap.xml +0 -35
- data/etc/userland/vmware/jenkins/jobs/pwntemplate-DOMAIN-ssllabs-scan.xml +0 -45
- data/etc/userland/vmware/jenkins/jobs/pwntemplate-GITREPO_BRANCH-sast.xml +0 -71
- data/etc/userland/vmware/jenkins/jobs/pwntemplate-NETWORKRANGE-nmap_discovery_scan_tcp_udp_65k.xml +0 -56
- data/etc/userland/vmware/jenkins/jobs/pwntemplate-NETWORKRANGE-nmap_xml_results_searchsploit.xml +0 -59
- data/etc/userland/vmware/jenkins/jobs/pwntemplate-NETWORKRANGE-openvas.xml +0 -45
- data/etc/userland/vmware/jenkins/jobs/selfupdate-exploit-db.xml +0 -43
- data/etc/userland/vmware/jenkins/jobs/selfupdate-gem.xml +0 -42
- data/etc/userland/vmware/jenkins/jobs/selfupdate-jenkins_plugins.xml +0 -42
- data/etc/userland/vmware/jenkins/jobs/selfupdate-metasploit.xml +0 -42
- data/etc/userland/vmware/jenkins/jobs/selfupdate-nmap_all_live_hosts.xml +0 -42
- data/etc/userland/vmware/jenkins/jobs/selfupdate-openvas_sync.xml +0 -42
- data/etc/userland/vmware/jenkins/jobs/selfupdate-openvas_wrappers.xml +0 -42
- data/etc/userland/vmware/jenkins/jobs/selfupdate-os.xml +0 -42
- data/etc/userland/vmware/jenkins/jobs/selfupdate-pwn.xml +0 -42
- data/etc/userland/vmware/jenkins/jobs/selfupdate-rvm.xml +0 -42
- data/etc/userland/vmware/jenkins/jobs/selfupdate-ssllabs-scan.xml +0 -42
- data/etc/userland/vmware/jenkins/jobs/selfupdate-wpscan.xml +0 -42
- data/etc/userland/vmware/jenkins/jobs_userland/.gitkeep +0 -0
- data/etc/userland/vmware/jenkins/log_parser_rules/arachni.rules +0 -5
- data/etc/userland/vmware/jenkins/log_parser_rules/sast.rules +0 -2
- data/etc/userland/vmware/jenkins/log_parser_rules/self_update.rules +0 -14
- data/etc/userland/vmware/jenkins/log_parser_rules/ssllabs-scan.rules +0 -8
- data/etc/userland/vmware/jenkins/log_parser_rules/system_maintenance.rules +0 -9
- data/etc/userland/vmware/jenkins/log_parser_rules/wpscan.rules +0 -2
- data/etc/userland/vmware/jenkins/vagrant.yaml.EXAMPLE +0 -8
- data/etc/userland/vmware/letsencrypt/vagrant.yaml.EXAMPLE +0 -5
- data/etc/userland/vmware/metasploit/vagrant.yaml.EXAMPLE +0 -4
- data/etc/userland/vmware/nessus/vagrant.yaml.EXAMPLE +0 -15
- data/etc/userland/vmware/openvas/vagrant.yaml.EXAMPLE +0 -2
- data/etc/userland/vmware/owasp_zap/navigation.instruct.EXAMPLE +0 -3
- data/etc/userland/vmware/postgres/vagrant.yaml.EXAMPLE +0 -2
- data/etc/userland/vmware/recon-ng/vagrant.yaml.EXAMPLE +0 -52
- data/etc/userland/vmware/vagrant.yaml.EXAMPLE +0 -5
- data/find_latest_gem_versions_per_Gemfile.sh +0 -11
- data/git_commit_test_reinit_gem.sh +0 -37
- data/install.sh +0 -176
- data/lib/pwn/aws/acm.rb +0 -92
- data/lib/pwn/aws/api_gateway.rb +0 -92
- data/lib/pwn/aws/app_stream.rb +0 -92
- data/lib/pwn/aws/application_auto_scaling.rb +0 -92
- data/lib/pwn/aws/application_discovery_service.rb +0 -92
- data/lib/pwn/aws/auto_scaling.rb +0 -92
- data/lib/pwn/aws/batch.rb +0 -92
- data/lib/pwn/aws/budgets.rb +0 -92
- data/lib/pwn/aws/cloud_formation.rb +0 -92
- data/lib/pwn/aws/cloud_front.rb +0 -92
- data/lib/pwn/aws/cloud_hsm.rb +0 -92
- data/lib/pwn/aws/cloud_search.rb +0 -92
- data/lib/pwn/aws/cloud_search_domain.rb +0 -92
- data/lib/pwn/aws/cloud_trail.rb +0 -92
- data/lib/pwn/aws/cloud_watch.rb +0 -92
- data/lib/pwn/aws/cloud_watch_events.rb +0 -92
- data/lib/pwn/aws/cloud_watch_logs.rb +0 -92
- data/lib/pwn/aws/code_build.rb +0 -92
- data/lib/pwn/aws/code_commit.rb +0 -92
- data/lib/pwn/aws/code_deploy.rb +0 -92
- data/lib/pwn/aws/code_pipeline.rb +0 -92
- data/lib/pwn/aws/cognito_identity.rb +0 -92
- data/lib/pwn/aws/cognito_identity_provider.rb +0 -92
- data/lib/pwn/aws/cognito_sync.rb +0 -92
- data/lib/pwn/aws/config_service.rb +0 -92
- data/lib/pwn/aws/data_pipleline.rb +0 -92
- data/lib/pwn/aws/database_migration_service.rb +0 -92
- data/lib/pwn/aws/device_farm.rb +0 -92
- data/lib/pwn/aws/direct_connect.rb +0 -92
- data/lib/pwn/aws/directory_service.rb +0 -92
- data/lib/pwn/aws/dynamo_db.rb +0 -92
- data/lib/pwn/aws/dynamo_db_streams.rb +0 -92
- data/lib/pwn/aws/ec2.rb +0 -92
- data/lib/pwn/aws/ecr.rb +0 -92
- data/lib/pwn/aws/ecs.rb +0 -92
- data/lib/pwn/aws/efs.rb +0 -92
- data/lib/pwn/aws/elasti_cache.rb +0 -92
- data/lib/pwn/aws/elastic_beanstalk.rb +0 -89
- data/lib/pwn/aws/elastic_load_balancing.rb +0 -92
- data/lib/pwn/aws/elastic_load_balancing_v2.rb +0 -92
- data/lib/pwn/aws/elastic_transcoder.rb +0 -92
- data/lib/pwn/aws/elasticsearch_service.rb +0 -92
- data/lib/pwn/aws/emr.rb +0 -92
- data/lib/pwn/aws/firehose.rb +0 -92
- data/lib/pwn/aws/game_lift.rb +0 -92
- data/lib/pwn/aws/glacier.rb +0 -92
- data/lib/pwn/aws/health.rb +0 -92
- data/lib/pwn/aws/iam.rb +0 -92
- data/lib/pwn/aws/import_export.rb +0 -92
- data/lib/pwn/aws/inspector.rb +0 -92
- data/lib/pwn/aws/iot.rb +0 -92
- data/lib/pwn/aws/iot_data_plane.rb +0 -92
- data/lib/pwn/aws/kinesis.rb +0 -92
- data/lib/pwn/aws/kinesis_analytics.rb +0 -92
- data/lib/pwn/aws/kms.rb +0 -92
- data/lib/pwn/aws/lambda.rb +0 -92
- data/lib/pwn/aws/lambda_preview.rb +0 -92
- data/lib/pwn/aws/lex.rb +0 -92
- data/lib/pwn/aws/lightsail.rb +0 -92
- data/lib/pwn/aws/machine_learning.rb +0 -92
- data/lib/pwn/aws/marketplace_commerce_analytics.rb +0 -92
- data/lib/pwn/aws/marketplace_metering.rb +0 -92
- data/lib/pwn/aws/ops_works.rb +0 -92
- data/lib/pwn/aws/ops_works_cm.rb +0 -92
- data/lib/pwn/aws/pinpoint.rb +0 -92
- data/lib/pwn/aws/polly.rb +0 -92
- data/lib/pwn/aws/rds.rb +0 -92
- data/lib/pwn/aws/redshift.rb +0 -92
- data/lib/pwn/aws/rekognition.rb +0 -92
- data/lib/pwn/aws/route53.rb +0 -92
- data/lib/pwn/aws/route53_domains.rb +0 -92
- data/lib/pwn/aws/s3.rb +0 -92
- data/lib/pwn/aws/service_catalog.rb +0 -92
- data/lib/pwn/aws/ses.rb +0 -92
- data/lib/pwn/aws/shield.rb +0 -92
- data/lib/pwn/aws/simple_db.rb +0 -92
- data/lib/pwn/aws/sms.rb +0 -92
- data/lib/pwn/aws/snowball.rb +0 -92
- data/lib/pwn/aws/sns.rb +0 -92
- data/lib/pwn/aws/sqs.rb +0 -92
- data/lib/pwn/aws/ssm.rb +0 -92
- data/lib/pwn/aws/states.rb +0 -92
- data/lib/pwn/aws/storage_gateway.rb +0 -92
- data/lib/pwn/aws/sts.rb +0 -63
- data/lib/pwn/aws/support.rb +0 -92
- data/lib/pwn/aws/swf.rb +0 -92
- data/lib/pwn/aws/waf.rb +0 -92
- data/lib/pwn/aws/waf_regional.rb +0 -92
- data/lib/pwn/aws/workspaces.rb +0 -92
- data/lib/pwn/aws/x_ray.rb +0 -92
- data/lib/pwn/aws.rb +0 -105
- data/lib/pwn/banner/bubble.rb +0 -42
- data/lib/pwn/banner/matrix.rb +0 -199
- data/lib/pwn/banner/ninja.rb +0 -54
- data/lib/pwn/banner/off_the_air.rb +0 -73
- data/lib/pwn/banner/pirate.rb +0 -62
- data/lib/pwn/banner.rb +0 -78
- data/lib/pwn/ffi.rb +0 -16
- data/lib/pwn/plugins/android.rb +0 -1616
- data/lib/pwn/plugins/ansible_vault.rb +0 -75
- data/lib/pwn/plugins/authentication_helper.rb +0 -79
- data/lib/pwn/plugins/baresip.rb +0 -704
- data/lib/pwn/plugins/basic_auth.rb +0 -63
- data/lib/pwn/plugins/beef.rb +0 -309
- data/lib/pwn/plugins/burp_suite.rb +0 -344
- data/lib/pwn/plugins/bus_pirate.rb +0 -148
- data/lib/pwn/plugins/char.rb +0 -459
- data/lib/pwn/plugins/credit_card.rb +0 -68
- data/lib/pwn/plugins/dao_ldap.rb +0 -131
- data/lib/pwn/plugins/dao_mongo.rb +0 -96
- data/lib/pwn/plugins/dao_postgres.rb +0 -224
- data/lib/pwn/plugins/dao_sqlite3.rb +0 -125
- data/lib/pwn/plugins/defect_dojo.rb +0 -759
- data/lib/pwn/plugins/detect_os.rb +0 -40
- data/lib/pwn/plugins/ein.rb +0 -141
- data/lib/pwn/plugins/file_fu.rb +0 -73
- data/lib/pwn/plugins/fuzz.rb +0 -206
- data/lib/pwn/plugins/git.rb +0 -166
- data/lib/pwn/plugins/github.rb +0 -136
- data/lib/pwn/plugins/hacker_one.rb +0 -152
- data/lib/pwn/plugins/http_intercept_helper.rb +0 -122
- data/lib/pwn/plugins/ibm_appscan.rb +0 -927
- data/lib/pwn/plugins/ip_info.rb +0 -100
- data/lib/pwn/plugins/jenkins.rb +0 -545
- data/lib/pwn/plugins/json_pathify.rb +0 -46
- data/lib/pwn/plugins/mail_agent.rb +0 -344
- data/lib/pwn/plugins/metasploit.rb +0 -151
- data/lib/pwn/plugins/msr206.rb +0 -1193
- data/lib/pwn/plugins/nessus_cloud.rb +0 -840
- data/lib/pwn/plugins/nexpose_vuln_scan.rb +0 -356
- data/lib/pwn/plugins/nmap_it.rb +0 -100
- data/lib/pwn/plugins/oauth2.rb +0 -67
- data/lib/pwn/plugins/ocr.rb +0 -43
- data/lib/pwn/plugins/open_ai.rb +0 -239
- data/lib/pwn/plugins/openvas.rb +0 -308
- data/lib/pwn/plugins/owasp_zap.rb +0 -550
- data/lib/pwn/plugins/packet.rb +0 -1313
- data/lib/pwn/plugins/pdf_parse.rb +0 -53
- data/lib/pwn/plugins/pony.rb +0 -282
- data/lib/pwn/plugins/pwn_logger.rb +0 -46
- data/lib/pwn/plugins/rabbit_mq.rb +0 -70
- data/lib/pwn/plugins/rfidler.rb +0 -56
- data/lib/pwn/plugins/serial.rb +0 -315
- data/lib/pwn/plugins/shodan.rb +0 -566
- data/lib/pwn/plugins/slack_client.rb +0 -104
- data/lib/pwn/plugins/sock.rb +0 -188
- data/lib/pwn/plugins/son_micro_rfid.rb +0 -504
- data/lib/pwn/plugins/spider.rb +0 -80
- data/lib/pwn/plugins/ssn.rb +0 -52
- data/lib/pwn/plugins/thread_pool.rb +0 -88
- data/lib/pwn/plugins/transparent_browser.rb +0 -423
- data/lib/pwn/plugins/twitter_api.rb +0 -148
- data/lib/pwn/plugins/uri_scheme.rb +0 -328
- data/lib/pwn/plugins/vsphere.rb +0 -82
- data/lib/pwn/plugins.rb +0 -70
- data/lib/pwn/reports/fuzz.rb +0 -272
- data/lib/pwn/reports/phone.rb +0 -312
- data/lib/pwn/reports/sast.rb +0 -311
- data/lib/pwn/reports/uri_buster.rb +0 -248
- data/lib/pwn/reports.rb +0 -23
- data/lib/pwn/sast/amqp_connect_as_guest.rb +0 -143
- data/lib/pwn/sast/apache_file_system_util_api.rb +0 -144
- data/lib/pwn/sast/aws.rb +0 -145
- data/lib/pwn/sast/banned_function_calls_c.rb +0 -272
- data/lib/pwn/sast/base64.rb +0 -143
- data/lib/pwn/sast/beef_hook.rb +0 -143
- data/lib/pwn/sast/cmd_execution_java.rb +0 -145
- data/lib/pwn/sast/cmd_execution_python.rb +0 -147
- data/lib/pwn/sast/cmd_execution_ruby.rb +0 -155
- data/lib/pwn/sast/cmd_execution_scala.rb +0 -145
- data/lib/pwn/sast/csrf.rb +0 -142
- data/lib/pwn/sast/deserial_java.rb +0 -150
- data/lib/pwn/sast/emoticon.rb +0 -151
- data/lib/pwn/sast/eval.rb +0 -144
- data/lib/pwn/sast/factory.rb +0 -145
- data/lib/pwn/sast/http_authorization_header.rb +0 -148
- data/lib/pwn/sast/inner_html.rb +0 -144
- data/lib/pwn/sast/keystore.rb +0 -143
- data/lib/pwn/sast/location_hash.rb +0 -144
- data/lib/pwn/sast/log4j.rb +0 -143
- data/lib/pwn/sast/logger.rb +0 -158
- data/lib/pwn/sast/outer_html.rb +0 -144
- data/lib/pwn/sast/password.rb +0 -143
- data/lib/pwn/sast/php_input_mechanisms.rb +0 -149
- data/lib/pwn/sast/php_type_juggling.rb +0 -144
- data/lib/pwn/sast/pom_version.rb +0 -152
- data/lib/pwn/sast/port.rb +0 -150
- data/lib/pwn/sast/private_key.rb +0 -143
- data/lib/pwn/sast/redirect.rb +0 -145
- data/lib/pwn/sast/redos.rb +0 -150
- data/lib/pwn/sast/shell.rb +0 -151
- data/lib/pwn/sast/signature.rb +0 -143
- data/lib/pwn/sast/sql.rb +0 -147
- data/lib/pwn/sast/ssl.rb +0 -147
- data/lib/pwn/sast/sudo.rb +0 -143
- data/lib/pwn/sast/task_tag.rb +0 -157
- data/lib/pwn/sast/throw_errors.rb +0 -143
- data/lib/pwn/sast/token.rb +0 -145
- data/lib/pwn/sast/version.rb +0 -144
- data/lib/pwn/sast/window_location_hash.rb +0 -143
- data/lib/pwn/sast.rb +0 -56
- data/lib/pwn/version.rb +0 -5
- data/lib/pwn/www/app_cobalt_io.rb +0 -137
- data/lib/pwn/www/bing.rb +0 -89
- data/lib/pwn/www/bug_crowd.rb +0 -134
- data/lib/pwn/www/checkip.rb +0 -71
- data/lib/pwn/www/coinbase_pro.rb +0 -134
- data/lib/pwn/www/duckduckgo.rb +0 -111
- data/lib/pwn/www/facebook.rb +0 -122
- data/lib/pwn/www/google.rb +0 -114
- data/lib/pwn/www/hacker_one.rb +0 -122
- data/lib/pwn/www/linkedin.rb +0 -122
- data/lib/pwn/www/pandora.rb +0 -122
- data/lib/pwn/www/pastebin.rb +0 -84
- data/lib/pwn/www/paypal.rb +0 -204
- data/lib/pwn/www/synack.rb +0 -134
- data/lib/pwn/www/torch.rb +0 -106
- data/lib/pwn/www/trading_view.rb +0 -125
- data/lib/pwn/www/twitter.rb +0 -134
- data/lib/pwn/www/uber.rb +0 -122
- data/lib/pwn/www/upwork.rb +0 -122
- data/lib/pwn/www/youtube.rb +0 -89
- data/lib/pwn/www.rb +0 -35
- data/lib/pwn.rb +0 -25
- data/packer/daemons/msfrpcd.rb +0 -64
- data/packer/daemons/openvas.rb +0 -51
- data/packer/deploy_docker_containers.sh +0 -9
- data/packer/deploy_packer_box.sh +0 -87
- data/packer/docker/kali_rolling_docker_pwn_fuzz_net_app_proto.json +0 -44
- data/packer/docker/kali_rolling_docker_pwn_prototyper.json +0 -48
- data/packer/docker/kali_rolling_docker_pwn_sast.json +0 -44
- data/packer/docker/kali_rolling_docker_pwn_transparent_browser.json +0 -46
- data/packer/docker/kali_rolling_docker_pwn_www_checkip.json +0 -34
- data/packer/http/kali_rolling_preseed.cfg +0 -81
- data/packer/kali_rolling_aws_ami.json +0 -137
- data/packer/kali_rolling_qemu_kvm.json +0 -157
- data/packer/kali_rolling_virtualbox.json +0 -184
- data/packer/kali_rolling_vmware.json +0 -165
- data/packer/packer_secrets.json.EXAMPLE +0 -9
- data/packer/provisioners/PayloadsAllTheThings.sh +0 -5
- data/packer/provisioners/SecLists.sh +0 -5
- data/packer/provisioners/afl.sh +0 -28
- data/packer/provisioners/aliases.rb +0 -18
- data/packer/provisioners/amass.sh +0 -5
- data/packer/provisioners/android.sh +0 -18
- data/packer/provisioners/ansible.sh +0 -5
- data/packer/provisioners/apache2.sh +0 -24
- data/packer/provisioners/arachni.sh +0 -28
- data/packer/provisioners/awscli.sh +0 -5
- data/packer/provisioners/bashrc.sh +0 -13
- data/packer/provisioners/beef.rb +0 -23
- data/packer/provisioners/burpsuite.sh +0 -23
- data/packer/provisioners/chrome.sh +0 -11
- data/packer/provisioners/coreutils.sh +0 -6
- data/packer/provisioners/curl.sh +0 -6
- data/packer/provisioners/docker.sh +0 -43
- data/packer/provisioners/docker_bashrc.sh +0 -2
- data/packer/provisioners/docker_rvm.sh +0 -22
- data/packer/provisioners/eyewitness.sh +0 -5
- data/packer/provisioners/ffmpeg.sh +0 -6
- data/packer/provisioners/firefox.sh +0 -7
- data/packer/provisioners/fuzzdb.sh +0 -5
- data/packer/provisioners/gdb.sh +0 -5
- data/packer/provisioners/geckodriver.sh +0 -9
- data/packer/provisioners/ghidra.sh +0 -5
- data/packer/provisioners/git.sh +0 -6
- data/packer/provisioners/init_image.sh +0 -103
- data/packer/provisioners/install_vagrant_ssh_key.sh +0 -15
- data/packer/provisioners/jenkins.sh +0 -62
- data/packer/provisioners/metasploit.rb +0 -59
- data/packer/provisioners/nmap_all_live_hosts.sh +0 -8
- data/packer/provisioners/openvas.sh +0 -23
- data/packer/provisioners/openvas_wrappers.sh +0 -4
- data/packer/provisioners/openvpn.sh +0 -7
- data/packer/provisioners/peda.sh +0 -4
- data/packer/provisioners/phantomjs.rb +0 -28
- data/packer/provisioners/phantomjs_wrapper.sh +0 -22
- data/packer/provisioners/post_install.sh +0 -41
- data/packer/provisioners/postgresql.sh +0 -49
- data/packer/provisioners/preeny.sh +0 -8
- data/packer/provisioners/pwn.sh +0 -100
- data/packer/provisioners/pwntools.sh +0 -13
- data/packer/provisioners/radamsa.sh +0 -7
- data/packer/provisioners/rc.local.sh +0 -16
- data/packer/provisioners/reboot_os.sh +0 -7
- data/packer/provisioners/ruby.sh +0 -35
- data/packer/provisioners/rvm.sh +0 -31
- data/packer/provisioners/scapy.sh +0 -5
- data/packer/provisioners/scout2.sh +0 -5
- data/packer/provisioners/sox.sh +0 -5
- data/packer/provisioners/ssllabs-scan.sh +0 -9
- data/packer/provisioners/strace.sh +0 -5
- data/packer/provisioners/sublist3r.sh +0 -5
- data/packer/provisioners/terminator.sh +0 -5
- data/packer/provisioners/toggle_tor.sh +0 -2
- data/packer/provisioners/tor.sh +0 -5
- data/packer/provisioners/twinkle.sh +0 -6
- data/packer/provisioners/update_os.sh +0 -108
- data/packer/provisioners/upload_globals.sh +0 -63
- data/packer/provisioners/vim.sh +0 -19
- data/packer/provisioners/virtualbox_guest_additions.sh +0 -20
- data/packer/provisioners/vmware_tools.sh +0 -8
- data/packer/provisioners/wpscan.rb +0 -23
- data/packer/provisioners/xrdp.sh +0 -22
- data/packer/provisioners/zzuf.sh +0 -5
- data/pwn.gemspec +0 -55
- data/reinstall_pwn_gemset.sh +0 -27
- data/spec/lib/pwn/aws/acm_spec.rb +0 -15
- data/spec/lib/pwn/aws/api_gateway_spec.rb +0 -15
- data/spec/lib/pwn/aws/app_stream_spec.rb +0 -15
- data/spec/lib/pwn/aws/application_auto_scaling_spec.rb +0 -15
- data/spec/lib/pwn/aws/application_discovery_service_spec.rb +0 -15
- data/spec/lib/pwn/aws/auto_scaling_spec.rb +0 -15
- data/spec/lib/pwn/aws/batch_spec.rb +0 -15
- data/spec/lib/pwn/aws/budgets_spec.rb +0 -15
- data/spec/lib/pwn/aws/cloud_formation_spec.rb +0 -15
- data/spec/lib/pwn/aws/cloud_front_spec.rb +0 -15
- data/spec/lib/pwn/aws/cloud_hsm_spec.rb +0 -15
- data/spec/lib/pwn/aws/cloud_search_domain_spec.rb +0 -15
- data/spec/lib/pwn/aws/cloud_search_spec.rb +0 -15
- data/spec/lib/pwn/aws/cloud_trail_spec.rb +0 -15
- data/spec/lib/pwn/aws/cloud_watch_events_spec.rb +0 -15
- data/spec/lib/pwn/aws/cloud_watch_logs_spec.rb +0 -15
- data/spec/lib/pwn/aws/cloud_watch_spec.rb +0 -15
- data/spec/lib/pwn/aws/code_build_spec.rb +0 -15
- data/spec/lib/pwn/aws/code_commit_spec.rb +0 -15
- data/spec/lib/pwn/aws/code_deploy_spec.rb +0 -15
- data/spec/lib/pwn/aws/code_pipeline_spec.rb +0 -15
- data/spec/lib/pwn/aws/cognito_identity_provider_spec.rb +0 -15
- data/spec/lib/pwn/aws/cognito_identity_spec.rb +0 -15
- data/spec/lib/pwn/aws/cognito_sync_spec.rb +0 -15
- data/spec/lib/pwn/aws/config_service_spec.rb +0 -15
- data/spec/lib/pwn/aws/data_pipleline_spec.rb +0 -15
- data/spec/lib/pwn/aws/database_migration_service_spec.rb +0 -15
- data/spec/lib/pwn/aws/device_farm_spec.rb +0 -15
- data/spec/lib/pwn/aws/direct_connect_spec.rb +0 -15
- data/spec/lib/pwn/aws/directory_service_spec.rb +0 -15
- data/spec/lib/pwn/aws/dynamo_db_spec.rb +0 -15
- data/spec/lib/pwn/aws/dynamo_db_streams_spec.rb +0 -15
- data/spec/lib/pwn/aws/ec2_spec.rb +0 -15
- data/spec/lib/pwn/aws/ecr_spec.rb +0 -15
- data/spec/lib/pwn/aws/ecs_spec.rb +0 -15
- data/spec/lib/pwn/aws/efs_spec.rb +0 -15
- data/spec/lib/pwn/aws/elasti_cache_spec.rb +0 -15
- data/spec/lib/pwn/aws/elastic_beanstalk_spec.rb +0 -15
- data/spec/lib/pwn/aws/elastic_load_balancing_spec.rb +0 -15
- data/spec/lib/pwn/aws/elastic_load_balancing_v2_spec.rb +0 -15
- data/spec/lib/pwn/aws/elastic_transcoder_spec.rb +0 -15
- data/spec/lib/pwn/aws/elasticsearch_service_spec.rb +0 -15
- data/spec/lib/pwn/aws/emr_spec.rb +0 -15
- data/spec/lib/pwn/aws/firehose_spec.rb +0 -15
- data/spec/lib/pwn/aws/game_lift_spec.rb +0 -15
- data/spec/lib/pwn/aws/glacier_spec.rb +0 -15
- data/spec/lib/pwn/aws/health_spec.rb +0 -15
- data/spec/lib/pwn/aws/iam_spec.rb +0 -15
- data/spec/lib/pwn/aws/import_export_spec.rb +0 -15
- data/spec/lib/pwn/aws/inspector_spec.rb +0 -15
- data/spec/lib/pwn/aws/iot_data_plane_spec.rb +0 -15
- data/spec/lib/pwn/aws/iot_spec.rb +0 -15
- data/spec/lib/pwn/aws/kinesis_analytics_spec.rb +0 -15
- data/spec/lib/pwn/aws/kinesis_spec.rb +0 -15
- data/spec/lib/pwn/aws/kms_spec.rb +0 -15
- data/spec/lib/pwn/aws/lambda_preview_spec.rb +0 -15
- data/spec/lib/pwn/aws/lambda_spec.rb +0 -15
- data/spec/lib/pwn/aws/lex_spec.rb +0 -15
- data/spec/lib/pwn/aws/lightsail_spec.rb +0 -15
- data/spec/lib/pwn/aws/machine_learning_spec.rb +0 -15
- data/spec/lib/pwn/aws/marketplace_commerce_analytics_spec.rb +0 -15
- data/spec/lib/pwn/aws/marketplace_metering_spec.rb +0 -15
- data/spec/lib/pwn/aws/ops_works_cm_spec.rb +0 -15
- data/spec/lib/pwn/aws/ops_works_spec.rb +0 -15
- data/spec/lib/pwn/aws/pinpoint_spec.rb +0 -15
- data/spec/lib/pwn/aws/polly_spec.rb +0 -15
- data/spec/lib/pwn/aws/rds_spec.rb +0 -15
- data/spec/lib/pwn/aws/redshift_spec.rb +0 -15
- data/spec/lib/pwn/aws/rekognition_spec.rb +0 -15
- data/spec/lib/pwn/aws/route53_domains_spec.rb +0 -15
- data/spec/lib/pwn/aws/route53_spec.rb +0 -15
- data/spec/lib/pwn/aws/s3_spec.rb +0 -15
- data/spec/lib/pwn/aws/service_catalog_spec.rb +0 -15
- data/spec/lib/pwn/aws/ses_spec.rb +0 -15
- data/spec/lib/pwn/aws/shield_spec.rb +0 -15
- data/spec/lib/pwn/aws/simple_db_spec.rb +0 -15
- data/spec/lib/pwn/aws/sms_spec.rb +0 -15
- data/spec/lib/pwn/aws/snowball_spec.rb +0 -15
- data/spec/lib/pwn/aws/sns_spec.rb +0 -15
- data/spec/lib/pwn/aws/sqs_spec.rb +0 -15
- data/spec/lib/pwn/aws/ssm_spec.rb +0 -15
- data/spec/lib/pwn/aws/states_spec.rb +0 -15
- data/spec/lib/pwn/aws/storage_gateway_spec.rb +0 -15
- data/spec/lib/pwn/aws/sts_spec.rb +0 -15
- data/spec/lib/pwn/aws/support_spec.rb +0 -15
- data/spec/lib/pwn/aws/swf_spec.rb +0 -15
- data/spec/lib/pwn/aws/waf_regional_spec.rb +0 -15
- data/spec/lib/pwn/aws/waf_spec.rb +0 -15
- data/spec/lib/pwn/aws/workspaces_spec.rb +0 -15
- data/spec/lib/pwn/aws/x_ray_spec.rb +0 -15
- data/spec/lib/pwn/aws_spec.rb +0 -10
- data/spec/lib/pwn/banner/bubble_spec.rb +0 -20
- data/spec/lib/pwn/banner/matrix_spec.rb +0 -20
- data/spec/lib/pwn/banner/ninja_spec.rb +0 -20
- data/spec/lib/pwn/banner/off_the_air_spec.rb +0 -20
- data/spec/lib/pwn/banner/pirate_spec.rb +0 -20
- data/spec/lib/pwn/banner_spec.rb +0 -15
- data/spec/lib/pwn/ffi_spec.rb +0 -10
- data/spec/lib/pwn/plugins/android_spec.rb +0 -15
- data/spec/lib/pwn/plugins/authentication_helper_spec.rb +0 -15
- data/spec/lib/pwn/plugins/basic_auth_spec.rb +0 -15
- data/spec/lib/pwn/plugins/beef_spec.rb +0 -15
- data/spec/lib/pwn/plugins/burp_suite_spec.rb +0 -15
- data/spec/lib/pwn/plugins/bus_pirate_spec.rb +0 -15
- data/spec/lib/pwn/plugins/char_spec.rb +0 -15
- data/spec/lib/pwn/plugins/credit_card_spec.rb +0 -15
- data/spec/lib/pwn/plugins/dao_ldap_spec.rb +0 -15
- data/spec/lib/pwn/plugins/dao_mongo_spec.rb +0 -15
- data/spec/lib/pwn/plugins/dao_postgres_spec.rb +0 -15
- data/spec/lib/pwn/plugins/dao_sqlite3_spec.rb +0 -15
- data/spec/lib/pwn/plugins/defect_dojo_spec.rb +0 -15
- data/spec/lib/pwn/plugins/detect_os_spec.rb +0 -15
- data/spec/lib/pwn/plugins/ein_spec.rb +0 -15
- data/spec/lib/pwn/plugins/file_fu_spec.rb +0 -15
- data/spec/lib/pwn/plugins/fuzz_spec.rb +0 -15
- data/spec/lib/pwn/plugins/git_spec.rb +0 -15
- data/spec/lib/pwn/plugins/github_spec.rb +0 -15
- data/spec/lib/pwn/plugins/hacker_one_spec.rb +0 -15
- data/spec/lib/pwn/plugins/ibm_appscan_spec.rb +0 -15
- data/spec/lib/pwn/plugins/ip_info_spec.rb +0 -15
- data/spec/lib/pwn/plugins/jenkins_spec.rb +0 -15
- data/spec/lib/pwn/plugins/json_pathify_spec.rb +0 -15
- data/spec/lib/pwn/plugins/mail_agent_spec.rb +0 -15
- data/spec/lib/pwn/plugins/metasploit_spec.rb +0 -15
- data/spec/lib/pwn/plugins/msr206_spec.rb +0 -15
- data/spec/lib/pwn/plugins/nessus_cloud_spec.rb +0 -15
- data/spec/lib/pwn/plugins/nexpose_vuln_scan_spec.rb +0 -15
- data/spec/lib/pwn/plugins/nmap_it_spec.rb +0 -15
- data/spec/lib/pwn/plugins/oauth2_spec.rb +0 -15
- data/spec/lib/pwn/plugins/ocr_spec.rb +0 -15
- data/spec/lib/pwn/plugins/openvas_spec.rb +0 -15
- data/spec/lib/pwn/plugins/owasp_zap_spec.rb +0 -15
- data/spec/lib/pwn/plugins/packet_spec.rb +0 -15
- data/spec/lib/pwn/plugins/pdf_parse_spec.rb +0 -15
- data/spec/lib/pwn/plugins/pony_spec.rb +0 -15
- data/spec/lib/pwn/plugins/rabbit_mq_spec.rb +0 -15
- data/spec/lib/pwn/plugins/rfidler_spec.rb +0 -15
- data/spec/lib/pwn/plugins/serial_spec.rb +0 -15
- data/spec/lib/pwn/plugins/shodan_spec.rb +0 -15
- data/spec/lib/pwn/plugins/slack_client_spec.rb +0 -15
- data/spec/lib/pwn/plugins/sock_spec.rb +0 -15
- data/spec/lib/pwn/plugins/son_micro_rfid_spec.rb +0 -15
- data/spec/lib/pwn/plugins/spider_spec.rb +0 -15
- data/spec/lib/pwn/plugins/ssn_spec.rb +0 -15
- data/spec/lib/pwn/plugins/thread_pool_spec.rb +0 -15
- data/spec/lib/pwn/plugins/transparent_browser_spec.rb +0 -15
- data/spec/lib/pwn/plugins/twitter_api_spec.rb +0 -15
- data/spec/lib/pwn/plugins/uri_scheme_spec.rb +0 -15
- data/spec/lib/pwn/plugins/vsphere_spec.rb +0 -15
- data/spec/lib/pwn/plugins_spec.rb +0 -10
- data/spec/lib/pwn/reports/fuzz_spec.rb +0 -15
- data/spec/lib/pwn/reports/phone_spec.rb +0 -15
- data/spec/lib/pwn/reports/sast_spec.rb +0 -15
- data/spec/lib/pwn/reports/uri_buster_spec.rb +0 -15
- data/spec/lib/pwn/reports_spec.rb +0 -10
- data/spec/lib/pwn/sast/amqp_connect_as_guest_spec.rb +0 -25
- data/spec/lib/pwn/sast/apache_file_system_util_api_spec.rb +0 -25
- data/spec/lib/pwn/sast/aws_spec.rb +0 -25
- data/spec/lib/pwn/sast/banned_function_calls_c_spec.rb +0 -25
- data/spec/lib/pwn/sast/base64_spec.rb +0 -25
- data/spec/lib/pwn/sast/beef_hook_spec.rb +0 -25
- data/spec/lib/pwn/sast/cmd_execution_java_spec.rb +0 -25
- data/spec/lib/pwn/sast/cmd_execution_python_spec.rb +0 -25
- data/spec/lib/pwn/sast/cmd_execution_ruby_spec.rb +0 -25
- data/spec/lib/pwn/sast/cmd_execution_scala_spec.rb +0 -25
- data/spec/lib/pwn/sast/csrf_spec.rb +0 -25
- data/spec/lib/pwn/sast/deserial_java_spec.rb +0 -25
- data/spec/lib/pwn/sast/emoticon_spec.rb +0 -25
- data/spec/lib/pwn/sast/eval_spec.rb +0 -25
- data/spec/lib/pwn/sast/factory_spec.rb +0 -25
- data/spec/lib/pwn/sast/http_authorization_header_spec.rb +0 -25
- data/spec/lib/pwn/sast/inner_html_spec.rb +0 -25
- data/spec/lib/pwn/sast/keystore_spec.rb +0 -25
- data/spec/lib/pwn/sast/location_hash_spec.rb +0 -25
- data/spec/lib/pwn/sast/log4j_spec.rb +0 -25
- data/spec/lib/pwn/sast/logger_spec.rb +0 -25
- data/spec/lib/pwn/sast/password_spec.rb +0 -25
- data/spec/lib/pwn/sast/php_input_mechanisms_spec.rb +0 -25
- data/spec/lib/pwn/sast/php_type_juggling_spec.rb +0 -25
- data/spec/lib/pwn/sast/pom_version_spec.rb +0 -25
- data/spec/lib/pwn/sast/port_spec.rb +0 -25
- data/spec/lib/pwn/sast/private_key_spec.rb +0 -25
- data/spec/lib/pwn/sast/redirect_spec.rb +0 -25
- data/spec/lib/pwn/sast/redos_spec.rb +0 -25
- data/spec/lib/pwn/sast/shell_spec.rb +0 -25
- data/spec/lib/pwn/sast/signature_spec.rb +0 -25
- data/spec/lib/pwn/sast/sql_spec.rb +0 -25
- data/spec/lib/pwn/sast/ssl_spec.rb +0 -25
- data/spec/lib/pwn/sast/sudo_spec.rb +0 -25
- data/spec/lib/pwn/sast/task_tag_spec.rb +0 -25
- data/spec/lib/pwn/sast/throw_errors_spec.rb +0 -25
- data/spec/lib/pwn/sast/token_spec.rb +0 -25
- data/spec/lib/pwn/sast/version_spec.rb +0 -25
- data/spec/lib/pwn/sast/window_location_hash_spec.rb +0 -25
- data/spec/lib/pwn/sast_spec.rb +0 -10
- data/spec/lib/pwn/www/app_cobalt_io_spec.rb +0 -15
- data/spec/lib/pwn/www/bing_spec.rb +0 -15
- data/spec/lib/pwn/www/bug_crowd.rb +0 -15
- data/spec/lib/pwn/www/checkip_spec.rb +0 -15
- data/spec/lib/pwn/www/coinbase_pro_spec.rb +0 -15
- data/spec/lib/pwn/www/duckduckgo_spec.rb +0 -15
- data/spec/lib/pwn/www/facebook_spec.rb +0 -15
- data/spec/lib/pwn/www/google_spec.rb +0 -15
- data/spec/lib/pwn/www/hacker_one_spec.rb +0 -15
- data/spec/lib/pwn/www/linkedin_spec.rb +0 -15
- data/spec/lib/pwn/www/pandora_spec.rb +0 -15
- data/spec/lib/pwn/www/pastebin_spec.rb +0 -15
- data/spec/lib/pwn/www/paypal_spec.rb +0 -15
- data/spec/lib/pwn/www/synack_spec.rb +0 -15
- data/spec/lib/pwn/www/torch_spec.rb +0 -15
- data/spec/lib/pwn/www/trading_view_spec.rb +0 -15
- data/spec/lib/pwn/www/twitter_spec.rb +0 -15
- data/spec/lib/pwn/www/uber_spec.rb +0 -15
- data/spec/lib/pwn/www/upwork_spec.rb +0 -15
- data/spec/lib/pwn/www/youtube_spec.rb +0 -15
- data/spec/lib/pwn/www_spec.rb +0 -10
- data/spec/lib/pwn_spec.rb +0 -10
- data/spec/spec_helper.rb +0 -3
- data/third_party/.gitkeep +0 -0
- data/update_pwn.sh +0 -9
- data/upgrade_ruby.sh +0 -42
- data/vagrant/provisioners/apache2.sh +0 -76
- data/vagrant/provisioners/beef.rb +0 -30
- data/vagrant/provisioners/burpsuite_pro.rb +0 -37
- data/vagrant/provisioners/exploit-db.sh +0 -2
- data/vagrant/provisioners/gem.sh +0 -4
- data/vagrant/provisioners/init_env.sh +0 -22
- data/vagrant/provisioners/jenkins.sh +0 -87
- data/vagrant/provisioners/jenkins_ssh-keygen.rb +0 -86
- data/vagrant/provisioners/kali_customize.rb +0 -130
- data/vagrant/provisioners/letsencrypt.rb +0 -35
- data/vagrant/provisioners/metasploit.rb +0 -25
- data/vagrant/provisioners/nmap_all_live_hosts.sh +0 -2
- data/vagrant/provisioners/openvas.sh +0 -23
- data/vagrant/provisioners/openvas_wrappers.sh +0 -2
- data/vagrant/provisioners/post_install.sh +0 -14
- data/vagrant/provisioners/postgres.sh +0 -22
- data/vagrant/provisioners/pwn.sh +0 -15
- data/vagrant/provisioners/rvm.sh +0 -18
- data/vagrant/provisioners/ssllabs-scan.sh +0 -10
- data/vagrant/provisioners/toggle_tor.sh +0 -2
- data/vagrant/provisioners/update_jenkins_plugins.rb +0 -30
- data/vagrant/provisioners/update_os.sh +0 -108
- data/vagrant/provisioners/upload_globals.sh +0 -63
- data/vagrant/provisioners/userland_fdisk.sh +0 -22
- data/vagrant/provisioners/userland_lvm.sh +0 -5
- data/vagrant/provisioners/wpscan.rb +0 -25
- data/vagrant_rsync_third_party.lst +0 -1
- data/vagrant_rsync_userland_template.lst +0 -8
data/lib/pwn/sast/shell.rb
DELETED
@@ -1,151 +0,0 @@
|
|
1
|
-
# frozen_string_literal: false
|
2
|
-
|
3
|
-
require 'socket'
|
4
|
-
|
5
|
-
module PWN
|
6
|
-
module SAST
|
7
|
-
# SAST Module used to identify if application is
|
8
|
-
# shelling-out which may lead to arbitrary command execution
|
9
|
-
module Shell
|
10
|
-
@@logger = PWN::Plugins::PWNLogger.create
|
11
|
-
|
12
|
-
# Supported Method Parameters::
|
13
|
-
# PWN::SAST::Shell.scan(
|
14
|
-
# dir_path: 'optional path to dir defaults to .'
|
15
|
-
# git_repo_root_uri: 'optional http uri of git repo scanned'
|
16
|
-
# )
|
17
|
-
|
18
|
-
public_class_method def self.scan(opts = {})
|
19
|
-
dir_path = opts[:dir_path]
|
20
|
-
git_repo_root_uri = opts[:git_repo_root_uri].to_s.scrub
|
21
|
-
result_arr = []
|
22
|
-
logger_results = ''
|
23
|
-
|
24
|
-
PWN::Plugins::FileFu.recurse_dir(dir_path: dir_path) do |entry|
|
25
|
-
if File.file?(entry) && File.basename(entry) !~ /^pwn.+(html|json|db)$/ && File.basename(entry) !~ /\.JS-BEAUTIFIED$/ && entry !~ /test/i
|
26
|
-
line_no_and_contents_arr = []
|
27
|
-
entry_beautified = false
|
28
|
-
|
29
|
-
if File.extname(entry) == '.js' && (`wc -l #{entry}`.split.first.to_i < 20 || entry.include?('.min.js') || entry.include?('-all.js'))
|
30
|
-
js_beautify = `js-beautify #{entry} > #{entry}.JS-BEAUTIFIED`.to_s.scrub
|
31
|
-
entry = "#{entry}.JS-BEAUTIFIED"
|
32
|
-
entry_beautified = true
|
33
|
-
end
|
34
|
-
|
35
|
-
test_case_filter = "
|
36
|
-
grep -niE \
|
37
|
-
-e '/bin/bash' \
|
38
|
-
-e '/bin/csh' \
|
39
|
-
-e '/bin/dash' \
|
40
|
-
-e '/bin/ksh' \
|
41
|
-
-e '/bin/rbash' \
|
42
|
-
-e '/bin/sh' \
|
43
|
-
-e '/bin/tcsh' \
|
44
|
-
-e '/usr/bin/screen' \
|
45
|
-
-e '/bin/zsh' #{entry}
|
46
|
-
"
|
47
|
-
|
48
|
-
str = `#{test_case_filter}`.to_s.scrub
|
49
|
-
|
50
|
-
if str.to_s.empty?
|
51
|
-
# If str length is >= 64 KB do not include results. (Due to Mongo Document Size Restrictions)
|
52
|
-
logger_results = "#{logger_results}~" # Catching bugs is good :)
|
53
|
-
else
|
54
|
-
str = "1:Result larger than 64KB -> Size: #{str.to_s.length}. Please click the \"Path\" link for more details." if str.to_s.length >= 64_000
|
55
|
-
|
56
|
-
hash_line = {
|
57
|
-
timestamp: Time.now.strftime('%Y-%m-%d %H:%M:%S.%9N %z').to_s,
|
58
|
-
security_references: security_references,
|
59
|
-
filename: { git_repo_root_uri: git_repo_root_uri, entry: entry },
|
60
|
-
line_no_and_contents: '',
|
61
|
-
raw_content: str,
|
62
|
-
test_case_filter: test_case_filter
|
63
|
-
}
|
64
|
-
|
65
|
-
# COMMMENT: Must be a better way to implement this (regex is kinda funky)
|
66
|
-
line_contents_split = str.split(/^(\d{1,}):|\n(\d{1,}):/)[1..-1]
|
67
|
-
line_no_count = line_contents_split.length # This should always be an even number
|
68
|
-
current_count = 0
|
69
|
-
while line_no_count > current_count
|
70
|
-
line_no = line_contents_split[current_count]
|
71
|
-
contents = line_contents_split[current_count + 1]
|
72
|
-
if Dir.exist?("#{dir_path}/.git") ||
|
73
|
-
Dir.exist?('.git')
|
74
|
-
|
75
|
-
repo_root = dir_path
|
76
|
-
repo_root = '.' if Dir.exist?('.git')
|
77
|
-
|
78
|
-
author = PWN::Plugins::Git.get_author(
|
79
|
-
repo_root: repo_root,
|
80
|
-
from_line: line_no,
|
81
|
-
to_line: line_no,
|
82
|
-
target_file: entry,
|
83
|
-
entry_beautified: entry_beautified
|
84
|
-
)
|
85
|
-
else
|
86
|
-
author = 'N/A'
|
87
|
-
end
|
88
|
-
hash_line[:line_no_and_contents] = line_no_and_contents_arr.push(
|
89
|
-
line_no: line_no,
|
90
|
-
contents: contents,
|
91
|
-
author: author
|
92
|
-
)
|
93
|
-
|
94
|
-
current_count += 2
|
95
|
-
end
|
96
|
-
result_arr.push(hash_line)
|
97
|
-
logger_results = "#{logger_results}x" # Seeing progress is good :)
|
98
|
-
end
|
99
|
-
end
|
100
|
-
end
|
101
|
-
logger_banner = "http://#{Socket.gethostname}:8808/doc_root/pwn-#{PWN::VERSION.to_s.scrub}/#{to_s.scrub.gsub('::', '/')}.html"
|
102
|
-
if logger_results.empty?
|
103
|
-
@@logger.info("#{logger_banner}: No files applicable to this test case.\n")
|
104
|
-
else
|
105
|
-
@@logger.info("#{logger_banner} => #{logger_results}complete.\n")
|
106
|
-
end
|
107
|
-
result_arr
|
108
|
-
rescue StandardError => e
|
109
|
-
raise e
|
110
|
-
end
|
111
|
-
|
112
|
-
# Used primarily to map NIST 800-53 Revision 4 Security Controls
|
113
|
-
# https://web.nvd.nist.gov/view/800-53/Rev4/impact?impactName=HIGH
|
114
|
-
# to PWN Exploit & Static Code Anti-Pattern Matching Modules to
|
115
|
-
# Determine the level of Testing Coverage w/ PWN.
|
116
|
-
|
117
|
-
public_class_method def self.security_references
|
118
|
-
{
|
119
|
-
sast_module: self,
|
120
|
-
section: 'DEVELOPER SECURITY AND PRIVACY ARCHITECTURE AND DESIGN',
|
121
|
-
nist_800_53_uri: 'https://csrc.nist.gov/Projects/risk-management/sp800-53-controls/release-search#/control/?version=5.1&number=SA-17',
|
122
|
-
cwe_id: '553',
|
123
|
-
cwe_uri: 'https://cwe.mitre.org/data/definitions/553.html'
|
124
|
-
}
|
125
|
-
rescue StandardError => e
|
126
|
-
raise e
|
127
|
-
end
|
128
|
-
|
129
|
-
# Author(s):: 0day Inc. <request.pentest@0dayinc.com>
|
130
|
-
|
131
|
-
public_class_method def self.authors
|
132
|
-
"AUTHOR(S):
|
133
|
-
0day Inc. <request.pentest@0dayinc.com>
|
134
|
-
"
|
135
|
-
end
|
136
|
-
|
137
|
-
# Display Usage for this Module
|
138
|
-
|
139
|
-
public_class_method def self.help
|
140
|
-
puts "USAGE:
|
141
|
-
sast_arr = #{self}.scan(
|
142
|
-
dir_path: 'optional path to dir defaults to .',
|
143
|
-
git_repo_root_uri: 'optional http uri of git repo scanned'
|
144
|
-
)
|
145
|
-
|
146
|
-
#{self}.authors
|
147
|
-
"
|
148
|
-
end
|
149
|
-
end
|
150
|
-
end
|
151
|
-
end
|
data/lib/pwn/sast/signature.rb
DELETED
@@ -1,143 +0,0 @@
|
|
1
|
-
# frozen_string_literal: false
|
2
|
-
|
3
|
-
require 'socket'
|
4
|
-
|
5
|
-
module PWN
|
6
|
-
module SAST
|
7
|
-
# SAST Module used to identify private keys used for authenticating
|
8
|
-
# with remote hosts.
|
9
|
-
module Signature
|
10
|
-
@@logger = PWN::Plugins::PWNLogger.create
|
11
|
-
|
12
|
-
# Supported Method Parameters::
|
13
|
-
# PWN::SAST::Signature(
|
14
|
-
# dir_path: 'optional path to dir defaults to .'
|
15
|
-
# git_repo_root_uri: 'optional http uri of git repo scanned'
|
16
|
-
# )
|
17
|
-
|
18
|
-
public_class_method def self.scan(opts = {})
|
19
|
-
dir_path = opts[:dir_path]
|
20
|
-
git_repo_root_uri = opts[:git_repo_root_uri].to_s.scrub
|
21
|
-
result_arr = []
|
22
|
-
logger_results = ''
|
23
|
-
|
24
|
-
PWN::Plugins::FileFu.recurse_dir(dir_path: dir_path) do |entry|
|
25
|
-
if File.file?(entry) && File.basename(entry) !~ /^pwn.+(html|json|db)$/ && File.basename(entry) !~ /\.JS-BEAUTIFIED$/ && entry !~ /test/i
|
26
|
-
line_no_and_contents_arr = []
|
27
|
-
entry_beautified = false
|
28
|
-
|
29
|
-
if File.extname(entry) == '.js' && (`wc -l #{entry}`.split.first.to_i < 20 || entry.include?('.min.js') || entry.include?('-all.js'))
|
30
|
-
js_beautify = `js-beautify #{entry} > #{entry}.JS-BEAUTIFIED`.to_s.scrub
|
31
|
-
entry = "#{entry}.JS-BEAUTIFIED"
|
32
|
-
entry_beautified = true
|
33
|
-
end
|
34
|
-
|
35
|
-
test_case_filter = "
|
36
|
-
grep -n \
|
37
|
-
-e 'Signature' #{entry}
|
38
|
-
"
|
39
|
-
|
40
|
-
str = `#{test_case_filter}`.to_s.scrub
|
41
|
-
|
42
|
-
if str.to_s.empty?
|
43
|
-
# If str length is >= 64 KB do not include results. (Due to Mongo Document Size Restrictions)
|
44
|
-
logger_results = "#{logger_results}~" # Catching bugs is good :)
|
45
|
-
else
|
46
|
-
str = "1:Result larger than 64KB -> Size: #{str.to_s.length}. Please click the \"Path\" link for more details." if str.to_s.length >= 64_000
|
47
|
-
|
48
|
-
hash_line = {
|
49
|
-
timestamp: Time.now.strftime('%Y-%m-%d %H:%M:%S.%9N %z').to_s,
|
50
|
-
security_references: security_references,
|
51
|
-
filename: { git_repo_root_uri: git_repo_root_uri, entry: entry },
|
52
|
-
line_no_and_contents: '',
|
53
|
-
raw_content: str,
|
54
|
-
test_case_filter: test_case_filter
|
55
|
-
}
|
56
|
-
|
57
|
-
# COMMMENT: Must be a better way to implement this (regex is kinda funky)
|
58
|
-
line_contents_split = str.split(/^(\d{1,}):|\n(\d{1,}):/)[1..-1]
|
59
|
-
line_no_count = line_contents_split.length # This should always be an even number
|
60
|
-
current_count = 0
|
61
|
-
while line_no_count > current_count
|
62
|
-
line_no = line_contents_split[current_count]
|
63
|
-
contents = line_contents_split[current_count + 1]
|
64
|
-
if Dir.exist?("#{dir_path}/.git") ||
|
65
|
-
Dir.exist?('.git')
|
66
|
-
|
67
|
-
repo_root = dir_path
|
68
|
-
repo_root = '.' if Dir.exist?('.git')
|
69
|
-
|
70
|
-
author = PWN::Plugins::Git.get_author(
|
71
|
-
repo_root: repo_root,
|
72
|
-
from_line: line_no,
|
73
|
-
to_line: line_no,
|
74
|
-
target_file: entry,
|
75
|
-
entry_beautified: entry_beautified
|
76
|
-
)
|
77
|
-
else
|
78
|
-
author = 'N/A'
|
79
|
-
end
|
80
|
-
hash_line[:line_no_and_contents] = line_no_and_contents_arr.push(
|
81
|
-
line_no: line_no,
|
82
|
-
contents: contents,
|
83
|
-
author: author
|
84
|
-
)
|
85
|
-
|
86
|
-
current_count += 2
|
87
|
-
end
|
88
|
-
result_arr.push(hash_line)
|
89
|
-
logger_results = "#{logger_results}x" # Seeing progress is good :)
|
90
|
-
end
|
91
|
-
end
|
92
|
-
end
|
93
|
-
logger_banner = "http://#{Socket.gethostname}:8808/doc_root/pwn-#{PWN::VERSION.to_s.scrub}/#{to_s.scrub.gsub('::', '/')}.html"
|
94
|
-
if logger_results.empty?
|
95
|
-
@@logger.info("#{logger_banner}: No files applicable to this test case.\n")
|
96
|
-
else
|
97
|
-
@@logger.info("#{logger_banner} => #{logger_results}complete.\n")
|
98
|
-
end
|
99
|
-
result_arr
|
100
|
-
rescue StandardError => e
|
101
|
-
raise e
|
102
|
-
end
|
103
|
-
|
104
|
-
# Used primarily to map NIST 800-53 Revision 4 Security Controls
|
105
|
-
# https://web.nvd.nist.gov/view/800-53/Rev4/impact?impactName=HIGH
|
106
|
-
# to PWN Exploit & Static Code Anti-Pattern Matching Modules to
|
107
|
-
# Determine the level of Testing Coverage w/ PWN.
|
108
|
-
|
109
|
-
public_class_method def self.security_references
|
110
|
-
{
|
111
|
-
sast_module: self,
|
112
|
-
section: 'CRYPTOGRAPHIC MODULE AUTHENTICATION',
|
113
|
-
nist_800_53_uri: 'https://csrc.nist.gov/Projects/risk-management/sp800-53-controls/release-search#/control/?version=5.1&number=IA-7',
|
114
|
-
cwe_id: '347',
|
115
|
-
cwe_uri: 'https://cwe.mitre.org/data/definitions/347.html'
|
116
|
-
}
|
117
|
-
rescue StandardError => e
|
118
|
-
raise e
|
119
|
-
end
|
120
|
-
|
121
|
-
# Author(s):: 0day Inc. <request.pentest@0dayinc.com>
|
122
|
-
|
123
|
-
public_class_method def self.authors
|
124
|
-
"AUTHOR(S):
|
125
|
-
0day Inc. <request.pentest@0dayinc.com>
|
126
|
-
"
|
127
|
-
end
|
128
|
-
|
129
|
-
# Display Usage for this Module
|
130
|
-
|
131
|
-
public_class_method def self.help
|
132
|
-
puts "USAGE:
|
133
|
-
sast_arr = #{self}.scan(
|
134
|
-
dir_path: 'optional path to dir defaults to .',
|
135
|
-
git_repo_root_uri: 'optional http uri of git repo scanned'
|
136
|
-
)
|
137
|
-
|
138
|
-
#{self}.authors
|
139
|
-
"
|
140
|
-
end
|
141
|
-
end
|
142
|
-
end
|
143
|
-
end
|
data/lib/pwn/sast/sql.rb
DELETED
@@ -1,147 +0,0 @@
|
|
1
|
-
# frozen_string_literal: false
|
2
|
-
|
3
|
-
require 'socket'
|
4
|
-
|
5
|
-
module PWN
|
6
|
-
module SAST
|
7
|
-
# SAST Module used to identify any
|
8
|
-
# reference within source code that may contain SQL to
|
9
|
-
# determine if SQL injeciton is possible.
|
10
|
-
module SQL
|
11
|
-
@@logger = PWN::Plugins::PWNLogger.create
|
12
|
-
|
13
|
-
# Supported Method Parameters::
|
14
|
-
# PWN::SAST::SQL.scan(
|
15
|
-
# dir_path: 'optional path to dir defaults to .'
|
16
|
-
# git_repo_root_uri: 'optional http uri of git repo scanned'
|
17
|
-
# )
|
18
|
-
|
19
|
-
public_class_method def self.scan(opts = {})
|
20
|
-
dir_path = opts[:dir_path]
|
21
|
-
git_repo_root_uri = opts[:git_repo_root_uri].to_s.scrub
|
22
|
-
result_arr = []
|
23
|
-
logger_results = ''
|
24
|
-
|
25
|
-
PWN::Plugins::FileFu.recurse_dir(dir_path: dir_path) do |entry|
|
26
|
-
if File.file?(entry) && File.basename(entry) !~ /^pwn.+(html|json|db)$/ && File.basename(entry) !~ /\.JS-BEAUTIFIED$/ && entry !~ /test/i
|
27
|
-
line_no_and_contents_arr = []
|
28
|
-
entry_beautified = false
|
29
|
-
|
30
|
-
if File.extname(entry) == '.js' && (`wc -l #{entry}`.split.first.to_i < 20 || entry.include?('.min.js') || entry.include?('-all.js'))
|
31
|
-
js_beautify = `js-beautify #{entry} > #{entry}.JS-BEAUTIFIED`.to_s.scrub
|
32
|
-
entry = "#{entry}.JS-BEAUTIFIED"
|
33
|
-
entry_beautified = true
|
34
|
-
end
|
35
|
-
|
36
|
-
test_case_filter = "
|
37
|
-
grep -in \
|
38
|
-
-e 'select .*from ' \
|
39
|
-
-e 'insert into .*values' \
|
40
|
-
-e 'update .*set ' \
|
41
|
-
-e 'delete from ' #{entry}
|
42
|
-
"
|
43
|
-
|
44
|
-
str = `#{test_case_filter}`.to_s.scrub
|
45
|
-
|
46
|
-
if str.to_s.empty?
|
47
|
-
# If str length is >= 64 KB do not include results. (Due to Mongo Document Size Restrictions)
|
48
|
-
logger_results = "#{logger_results}~" # Catching bugs is good :)
|
49
|
-
else
|
50
|
-
str = "1:Result larger than 64KB -> Size: #{str.to_s.length}. Please click the \"Path\" link for more details." if str.to_s.length >= 64_000
|
51
|
-
|
52
|
-
hash_line = {
|
53
|
-
timestamp: Time.now.strftime('%Y-%m-%d %H:%M:%S.%9N %z').to_s,
|
54
|
-
security_references: security_references,
|
55
|
-
filename: { git_repo_root_uri: git_repo_root_uri, entry: entry },
|
56
|
-
line_no_and_contents: '',
|
57
|
-
raw_content: str,
|
58
|
-
test_case_filter: test_case_filter
|
59
|
-
}
|
60
|
-
|
61
|
-
# COMMMENT: Must be a better way to implement this (regex is kinda funky)
|
62
|
-
line_contents_split = str.split(/^(\d{1,}):|\n(\d{1,}):/)[1..-1]
|
63
|
-
line_no_count = line_contents_split.length # This should always be an even number
|
64
|
-
current_count = 0
|
65
|
-
while line_no_count > current_count
|
66
|
-
line_no = line_contents_split[current_count]
|
67
|
-
contents = line_contents_split[current_count + 1]
|
68
|
-
if Dir.exist?("#{dir_path}/.git") ||
|
69
|
-
Dir.exist?('.git')
|
70
|
-
|
71
|
-
repo_root = dir_path
|
72
|
-
repo_root = '.' if Dir.exist?('.git')
|
73
|
-
|
74
|
-
author = PWN::Plugins::Git.get_author(
|
75
|
-
repo_root: repo_root,
|
76
|
-
from_line: line_no,
|
77
|
-
to_line: line_no,
|
78
|
-
target_file: entry,
|
79
|
-
entry_beautified: entry_beautified
|
80
|
-
)
|
81
|
-
else
|
82
|
-
author = 'N/A'
|
83
|
-
end
|
84
|
-
hash_line[:line_no_and_contents] = line_no_and_contents_arr.push(
|
85
|
-
line_no: line_no,
|
86
|
-
contents: contents,
|
87
|
-
author: author
|
88
|
-
)
|
89
|
-
|
90
|
-
current_count += 2
|
91
|
-
end
|
92
|
-
result_arr.push(hash_line)
|
93
|
-
logger_results = "#{logger_results}x" # Seeing progress is good :)
|
94
|
-
end
|
95
|
-
end
|
96
|
-
end
|
97
|
-
logger_banner = "http://#{Socket.gethostname}:8808/doc_root/pwn-#{PWN::VERSION.to_s.scrub}/#{to_s.scrub.gsub('::', '/')}.html"
|
98
|
-
if logger_results.empty?
|
99
|
-
@@logger.info("#{logger_banner}: No files applicable to this test case.\n")
|
100
|
-
else
|
101
|
-
@@logger.info("#{logger_banner} => #{logger_results}complete.\n")
|
102
|
-
end
|
103
|
-
result_arr
|
104
|
-
rescue StandardError => e
|
105
|
-
raise e
|
106
|
-
end
|
107
|
-
|
108
|
-
# Used primarily to map NIST 800-53 Revision 4 Security Controls
|
109
|
-
# https://web.nvd.nist.gov/view/800-53/Rev4/impact?impactName=HIGH
|
110
|
-
# to PWN Exploit & Static Code Anti-Pattern Matching Modules to
|
111
|
-
# Determine the level of Testing Coverage w/ PWN.
|
112
|
-
|
113
|
-
public_class_method def self.security_references
|
114
|
-
{
|
115
|
-
sast_module: self,
|
116
|
-
section: 'INFORMATION INPUT VALIDATION',
|
117
|
-
nist_800_53_uri: 'https://csrc.nist.gov/Projects/risk-management/sp800-53-controls/release-search#/control/?version=5.1&number=SI-10',
|
118
|
-
cwe_id: '89',
|
119
|
-
cwe_uri: 'https://cwe.mitre.org/data/definitions/89.html'
|
120
|
-
}
|
121
|
-
rescue StandardError => e
|
122
|
-
raise e
|
123
|
-
end
|
124
|
-
|
125
|
-
# Author(s):: 0day Inc. <request.pentest@0dayinc.com>
|
126
|
-
|
127
|
-
public_class_method def self.authors
|
128
|
-
"AUTHOR(S):
|
129
|
-
0day Inc. <request.pentest@0dayinc.com>
|
130
|
-
"
|
131
|
-
end
|
132
|
-
|
133
|
-
# Display Usage for this Module
|
134
|
-
|
135
|
-
public_class_method def self.help
|
136
|
-
puts "USAGE:
|
137
|
-
sast_arr = #{self}.scan(
|
138
|
-
dir_path: 'optional path to dir defaults to .',
|
139
|
-
git_repo_root_uri: 'optional http uri of git repo scanned'
|
140
|
-
)
|
141
|
-
|
142
|
-
#{self}.authors
|
143
|
-
"
|
144
|
-
end
|
145
|
-
end
|
146
|
-
end
|
147
|
-
end
|
data/lib/pwn/sast/ssl.rb
DELETED
@@ -1,147 +0,0 @@
|
|
1
|
-
# frozen_string_literal: false
|
2
|
-
|
3
|
-
require 'socket'
|
4
|
-
|
5
|
-
module PWN
|
6
|
-
module SAST
|
7
|
-
# SAST Module used to identify any SSL/TLS
|
8
|
-
# reference within source code.
|
9
|
-
module SSL
|
10
|
-
@@logger = PWN::Plugins::PWNLogger.create
|
11
|
-
|
12
|
-
# Supported Method Parameters::
|
13
|
-
# PWN::SAST::SSL.scan(
|
14
|
-
# dir_path: 'optional path to dir defaults to .'
|
15
|
-
# git_repo_root_uri: 'optional http uri of git repo scanned'
|
16
|
-
# )
|
17
|
-
|
18
|
-
public_class_method def self.scan(opts = {})
|
19
|
-
dir_path = opts[:dir_path]
|
20
|
-
git_repo_root_uri = opts[:git_repo_root_uri].to_s.scrub
|
21
|
-
result_arr = []
|
22
|
-
logger_results = ''
|
23
|
-
|
24
|
-
PWN::Plugins::FileFu.recurse_dir(dir_path: dir_path) do |entry|
|
25
|
-
if File.file?(entry) && File.basename(entry) !~ /^pwn.+(html|json|db)$/ && File.basename(entry) !~ /\.JS-BEAUTIFIED$/ && entry !~ /test/i
|
26
|
-
line_no_and_contents_arr = []
|
27
|
-
entry_beautified = false
|
28
|
-
|
29
|
-
if File.extname(entry) == '.js' && (`wc -l #{entry}`.split.first.to_i < 20 || entry.include?('.min.js') || entry.include?('-all.js'))
|
30
|
-
js_beautify = `js-beautify #{entry} > #{entry}.JS-BEAUTIFIED`.to_s.scrub
|
31
|
-
entry = "#{entry}.JS-BEAUTIFIED"
|
32
|
-
entry_beautified = true
|
33
|
-
end
|
34
|
-
|
35
|
-
test_case_filter = "
|
36
|
-
grep -Fin \
|
37
|
-
-e 'ssl' \
|
38
|
-
-e 'tls' \
|
39
|
-
-e 'trustAll' \
|
40
|
-
-e 'trustmanager' \
|
41
|
-
-e 'ssl_version' #{entry}
|
42
|
-
"
|
43
|
-
|
44
|
-
str = `#{test_case_filter}`.to_s.scrub
|
45
|
-
|
46
|
-
if str.to_s.empty?
|
47
|
-
# If str length is >= 64 KB do not include results. (Due to Mongo Document Size Restrictions)
|
48
|
-
logger_results = "#{logger_results}~" # Catching bugs is good :)
|
49
|
-
else
|
50
|
-
str = "1:Result larger than 64KB -> Size: #{str.to_s.length}. Please click the \"Path\" link for more details." if str.to_s.length >= 64_000
|
51
|
-
|
52
|
-
hash_line = {
|
53
|
-
timestamp: Time.now.strftime('%Y-%m-%d %H:%M:%S.%9N %z').to_s,
|
54
|
-
security_references: security_references,
|
55
|
-
filename: { git_repo_root_uri: git_repo_root_uri, entry: entry },
|
56
|
-
line_no_and_contents: '',
|
57
|
-
raw_content: str,
|
58
|
-
test_case_filter: test_case_filter
|
59
|
-
}
|
60
|
-
|
61
|
-
# COMMMENT: Must be a better way to implement this (regex is kinda funky)
|
62
|
-
line_contents_split = str.split(/^(\d{1,}):|\n(\d{1,}):/)[1..-1]
|
63
|
-
line_no_count = line_contents_split.length # This should always be an even number
|
64
|
-
current_count = 0
|
65
|
-
while line_no_count > current_count
|
66
|
-
line_no = line_contents_split[current_count]
|
67
|
-
contents = line_contents_split[current_count + 1]
|
68
|
-
if Dir.exist?("#{dir_path}/.git") ||
|
69
|
-
Dir.exist?('.git')
|
70
|
-
|
71
|
-
repo_root = dir_path
|
72
|
-
repo_root = '.' if Dir.exist?('.git')
|
73
|
-
|
74
|
-
author = PWN::Plugins::Git.get_author(
|
75
|
-
repo_root: repo_root,
|
76
|
-
from_line: line_no,
|
77
|
-
to_line: line_no,
|
78
|
-
target_file: entry,
|
79
|
-
entry_beautified: entry_beautified
|
80
|
-
)
|
81
|
-
else
|
82
|
-
author = 'N/A'
|
83
|
-
end
|
84
|
-
hash_line[:line_no_and_contents] = line_no_and_contents_arr.push(
|
85
|
-
line_no: line_no,
|
86
|
-
contents: contents,
|
87
|
-
author: author
|
88
|
-
)
|
89
|
-
|
90
|
-
current_count += 2
|
91
|
-
end
|
92
|
-
result_arr.push(hash_line)
|
93
|
-
logger_results = "#{logger_results}x" # Seeing progress is good :)
|
94
|
-
end
|
95
|
-
end
|
96
|
-
end
|
97
|
-
logger_banner = "http://#{Socket.gethostname}:8808/doc_root/pwn-#{PWN::VERSION.to_s.scrub}/#{to_s.scrub.gsub('::', '/')}.html"
|
98
|
-
if logger_results.empty?
|
99
|
-
@@logger.info("#{logger_banner}: No files applicable to this test case.\n")
|
100
|
-
else
|
101
|
-
@@logger.info("#{logger_banner} => #{logger_results}complete.\n")
|
102
|
-
end
|
103
|
-
result_arr
|
104
|
-
rescue StandardError => e
|
105
|
-
raise e
|
106
|
-
end
|
107
|
-
|
108
|
-
# Used primarily to map NIST 800-53 Revision 4 Security Controls
|
109
|
-
# https://web.nvd.nist.gov/view/800-53/Rev4/impact?impactName=HIGH
|
110
|
-
# to PWN Exploit & Static Code Anti-Pattern Matching Modules to
|
111
|
-
# Determine the level of Testing Coverage w/ PWN.
|
112
|
-
|
113
|
-
public_class_method def self.security_references
|
114
|
-
{
|
115
|
-
sast_module: self,
|
116
|
-
section: 'PUBLIC KEY INFRASTRUCTURE CERTIFICATES',
|
117
|
-
nist_800_53_uri: 'https://csrc.nist.gov/Projects/risk-management/sp800-53-controls/release-search#/control/?version=5.1&number=SC-17',
|
118
|
-
cwe_id: '310',
|
119
|
-
cwe_uri: 'https://cwe.mitre.org/data/definitions/310.html'
|
120
|
-
}
|
121
|
-
rescue StandardError => e
|
122
|
-
raise e
|
123
|
-
end
|
124
|
-
|
125
|
-
# Author(s):: 0day Inc. <request.pentest@0dayinc.com>
|
126
|
-
|
127
|
-
public_class_method def self.authors
|
128
|
-
"AUTHOR(S):
|
129
|
-
0day Inc. <request.pentest@0dayinc.com>
|
130
|
-
"
|
131
|
-
end
|
132
|
-
|
133
|
-
# Display Usage for this Module
|
134
|
-
|
135
|
-
public_class_method def self.help
|
136
|
-
puts "USAGE:
|
137
|
-
sast_arr = #{self}.scan(
|
138
|
-
dir_path: 'optional path to dir defaults to .',
|
139
|
-
git_repo_root_uri: 'optional http uri of git repo scanned'
|
140
|
-
)
|
141
|
-
|
142
|
-
#{self}.authors
|
143
|
-
"
|
144
|
-
end
|
145
|
-
end
|
146
|
-
end
|
147
|
-
end
|