pwn 0.4.780 → 0.4.782

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4d268dbff9c4a57d111e0c3809c11dcca5d53116d928343394e6e0ebe9824691
4
- data.tar.gz: b61857cac148560ccc32c3482a70022563119621b5753b59048dffe78af497fa
3
+ metadata.gz: 1450ae82baf714135135ab6704a4e64b727a2f736cae7e32f4a12e6f24fca5bf
4
+ data.tar.gz: 608fb1826e49e092b84872842d2c0c407a5d3993aaa64364714fcc9073ca61c4
5
5
  SHA512:
6
- metadata.gz: 641b7b8c6d92eeb8ed8363087fde7d802ff18bf5a25cf2562f0ee082666fa512964a8a423623578a9c92d93e4bd15a09ec9485a567db29ba780c560c999cc4bd
7
- data.tar.gz: 639a7927a1900a2d28805ff41481cbb7a1837e11a7a87f90ee95e0d1753ca7f88121fc41fa2cd8c5fddee0e259233cbfc77d4b5b58763ed39b1acd7d357ac470
6
+ metadata.gz: 51cd7e78554f70f786fef5eab7025d8395fd954162887cfb4bd990abc36664b89198bc32f76bf68a22b665375c5b113cca3e8abf540d68d1270ec780310c76fc
7
+ data.tar.gz: 1686ea1951933bda3152f39293d9291bfde83ae49acdf6484094e6451c5e5a1a39091ab45a380da16c87339808bbcd45c166ba786be7fafb6108b3817958132f
data/README.md CHANGED
@@ -37,7 +37,7 @@ $ rvm use ruby-3.2.2@pwn
37
37
  $ rvm list gemsets
38
38
  $ gem install --verbose pwn
39
39
  $ pwn
40
- pwn[v0.4.780]:001 >>> PWN.help
40
+ pwn[v0.4.782]:001 >>> PWN.help
41
41
  ```
42
42
 
43
43
  [![Installing the pwn Security Automation Framework](https://raw.githubusercontent.com/0dayInc/pwn/master/documentation/pwn_install.png)](https://youtu.be/G7iLUY4FzsI)
@@ -52,7 +52,7 @@ $ rvm use ruby-3.2.2@pwn
52
52
  $ gem uninstall --all --executables pwn
53
53
  $ gem install --verbose pwn
54
54
  $ pwn
55
- pwn[v0.4.780]:001 >>> PWN.help
55
+ pwn[v0.4.782]:001 >>> PWN.help
56
56
  ```
57
57
 
58
58
 
@@ -28,7 +28,7 @@ OptionParser.new do |options|
28
28
  opts[:plugins] = plugins
29
29
  end
30
30
 
31
- options.on('-L', '--[no-]list-available', '<Optional - List Available Jenkins Plugins for Installation>') do |list_available_bool|
31
+ options.on('-L', '--list-available', '<Optional - List Available Jenkins Plugins for Installation>') do |list_available_bool|
32
32
  opts[:list_available_bool] = list_available_bool
33
33
  end
34
34
 
@@ -42,54 +42,52 @@ if opts.empty?
42
42
  exit 1
43
43
  end
44
44
 
45
- ip = opts[:ip].to_s.scrub
46
- port = opts[:port].to_i
47
- username = opts[:username]
48
- api_key = opts[:api_key]
49
- plugins = opts[:plugins].to_s.scrub
50
- list_available_bool = if opts[:list_available_bool]
51
- true
52
- else
53
- false
54
- end
45
+ begin
46
+ ip = opts[:ip].to_s.scrub
47
+ port = opts[:port].to_i
48
+ username = opts[:username]
49
+ api_key = opts[:api_key]
50
+ plugins = opts[:plugins].to_s.scrub
51
+ list_available_bool = true if opts[:list_available_bool] ||= false
52
+ restart_jenkins = true if opts[:restart_jenkins] ||= false
53
+
54
+ if port.positive?
55
+ jenkins_obj = PWN::Plugins::Jenkins.connect(
56
+ ip: ip,
57
+ port: port,
58
+ username: username,
59
+ api_key: api_key
60
+ )
61
+ else
62
+ jenkins_obj = PWN::Plugins::Jenkins.connect(
63
+ ip: ip,
64
+ username: username,
65
+ api_key: api_key
66
+ )
67
+ end
55
68
 
56
- restart_jenkins = true if opts[:restart_jenkins] ||= false
57
- if restart_jenkins
58
- puts 'Restarting Jenkins...'
59
- jenkins_obj.system.restart
60
- exit 0
61
- end
69
+ if restart_jenkins
70
+ puts 'Restarting Jenkins...'
71
+ jenkins_obj.system.restart
72
+ exit 0
73
+ end
62
74
 
63
- if port.positive?
64
- jenkins_obj = PWN::Plugins::Jenkins.connect(
65
- ip: ip,
66
- port: port,
67
- username: username,
68
- api_key: api_key
69
- )
70
- else
71
- jenkins_obj = PWN::Plugins::Jenkins.connect(
72
- ip: ip,
73
- username: username,
74
- api_key: api_key
75
- )
76
- end
75
+ if list_available_bool
76
+ puts jenkins_obj.plugin.list_available
77
+ else
78
+ plugin_arr = []
79
+ plugins.split(',').each do |p|
80
+ plugin_arr.push(p.strip.chomp)
81
+ end
77
82
 
78
- if list_available_bool
79
- puts jenkins_obj.plugin.list_available
80
- else
81
- plugin_arr = []
82
- plugins.split(',').each do |p|
83
- plugin_arr.push(p.strip.chomp)
83
+ jenkins_obj.plugin.install(plugin_arr)
84
84
  end
85
-
86
- # In Reference to https://github.com/arangamani/jenkins_api_client/issues/287
87
- # Bug in RubyGem jenkins_api_client 1.5.3 when interacting w/ Jenkins > 2.190
88
- # i.e.
89
- # Crumbs turned on...
90
- # JenkinsApi::Exceptions::Forbidden: Access Denied...
91
- # Crumb expired...
92
- jenkins_obj.plugin.install(plugin_arr)
85
+ rescue Interrupt
86
+ puts "\nGoodbye."
87
+ rescue JenkinsApi::Exceptions::ServiceUnavailable
88
+ puts 'Jenkins Server Unavailable.' unless restart_jenkins
89
+ rescue StandardError => e
90
+ raise e
91
+ ensure
92
+ PWN::Plugins::Jenkins.disconnect(jenkins_obj: jenkins_obj) unless restart_jenkins
93
93
  end
94
-
95
- PWN::Plugins::Jenkins.disconnect(jenkins_obj: jenkins_obj)
@@ -1,9 +1,10 @@
1
- <?xml version='1.0' encoding='UTF-8'?>
1
+ <?xml version='1.1' encoding='UTF-8'?>
2
2
  <project>
3
3
  <actions/>
4
4
  <description></description>
5
5
  <keepDependencies>false</keepDependencies>
6
6
  <properties>
7
+ <hudson.plugins.jira.JiraProjectProperty plugin="jira@3.8"/>
7
8
  <jenkins.model.BuildDiscarderProperty>
8
9
  <strategy class="hudson.tasks.LogRotator">
9
10
  <daysToKeep>-1</daysToKeep>
@@ -16,9 +17,6 @@
16
17
  <org.jenkinsci.plugins.gitbucket.GitBucketProjectProperty plugin="gitbucket@0.8">
17
18
  <linkEnabled>false</linkEnabled>
18
19
  </org.jenkinsci.plugins.gitbucket.GitBucketProjectProperty>
19
- <com.dabsquared.gitlabjenkins.connection.GitLabConnectionProperty plugin="gitlab-plugin@1.4.7">
20
- <gitLabConnection></gitLabConnection>
21
- </com.dabsquared.gitlabjenkins.connection.GitLabConnectionProperty>
22
20
  </properties>
23
21
  <scm class="hudson.scm.NullSCM"/>
24
22
  <canRoam>true</canRoam>
@@ -29,27 +27,29 @@
29
27
  <concurrentBuild>false</concurrentBuild>
30
28
  <builders>
31
29
  <hudson.tasks.Shell>
32
- <command>sudo /bin/bash --login -c &quot;cd $WORKSPACE &amp;&amp; /usr/local/bin/nmap_all_live_hosts.sh &lt;CIDR_RANGE&gt; &lt;ETH_INTERFACE&gt;&quot;</command>
30
+ <command>sudo /bin/bash --login -c &quot;pwn_nmap_discover_tcp_udp --stop-nse --target-range RANGE --target-exclude-range $WORKSPACE/nmap_targets_exclude.txt --interface eth0 --results-root $WORKSPACE&quot;</command>
31
+ <configuredLocalRules/>
33
32
  </hudson.tasks.Shell>
34
33
  </builders>
35
34
  <publishers>
36
- <htmlpublisher.HtmlPublisher plugin="htmlpublisher@1.14">
35
+ <htmlpublisher.HtmlPublisher plugin="htmlpublisher@1.30">
37
36
  <reportTargets>
38
37
  <htmlpublisher.HtmlPublisherTarget>
39
38
  <reportName>Nmap - Latest Results</reportName>
40
39
  <reportDir>$WORKSPACE</reportDir>
41
- <reportFiles>host_discovery_results.txt, latest_tcp_results.txt, latest_udp_results.txt</reportFiles>
40
+ <reportFiles>nmap_targets.txt, nmap_tcp_results.txt, nmap_udp_results.txt</reportFiles>
42
41
  <alwaysLinkToLastBuild>false</alwaysLinkToLastBuild>
43
42
  <reportTitles>Discovered, TCP, UDP</reportTitles>
44
43
  <keepAll>false</keepAll>
45
44
  <allowMissing>false</allowMissing>
46
45
  <includes>**/*</includes>
46
+ <escapeUnderscores>true</escapeUnderscores>
47
47
  </htmlpublisher.HtmlPublisherTarget>
48
48
  </reportTargets>
49
49
  </htmlpublisher.HtmlPublisher>
50
50
  </publishers>
51
51
  <buildWrappers>
52
- <hudson.plugins.ansicolor.AnsiColorBuildWrapper plugin="ansicolor@0.5.0">
52
+ <hudson.plugins.ansicolor.AnsiColorBuildWrapper plugin="ansicolor@1.0.2">
53
53
  <colorMapName>xterm</colorMapName>
54
54
  </hudson.plugins.ansicolor.AnsiColorBuildWrapper>
55
55
  </buildWrappers>
@@ -1,9 +1,10 @@
1
- <?xml version='1.0' encoding='UTF-8'?>
1
+ <?xml version='1.1' encoding='UTF-8'?>
2
2
  <project>
3
3
  <actions/>
4
4
  <description></description>
5
5
  <keepDependencies>false</keepDependencies>
6
6
  <properties>
7
+ <hudson.plugins.jira.JiraProjectProperty plugin="jira@3.8"/>
7
8
  <jenkins.model.BuildDiscarderProperty>
8
9
  <strategy class="hudson.tasks.LogRotator">
9
10
  <daysToKeep>-1</daysToKeep>
@@ -16,9 +17,6 @@
16
17
  <org.jenkinsci.plugins.gitbucket.GitBucketProjectProperty plugin="gitbucket@0.8">
17
18
  <linkEnabled>false</linkEnabled>
18
19
  </org.jenkinsci.plugins.gitbucket.GitBucketProjectProperty>
19
- <com.dabsquared.gitlabjenkins.connection.GitLabConnectionProperty plugin="gitlab-plugin@1.4.7">
20
- <gitLabConnection></gitLabConnection>
21
- </com.dabsquared.gitlabjenkins.connection.GitLabConnectionProperty>
22
20
  </properties>
23
21
  <scm class="hudson.scm.NullSCM"/>
24
22
  <canRoam>true</canRoam>
@@ -29,27 +27,29 @@
29
27
  <concurrentBuild>false</concurrentBuild>
30
28
  <builders>
31
29
  <hudson.tasks.Shell>
32
- <command>sudo /bin/bash --login -c &quot;cd $WORKSPACE &amp;&amp; /usr/local/bin/nmap_all_live_hosts.sh &lt;CIDR_RANGE&gt; &lt;ETH_INTERFACE&gt;&quot;</command>
30
+ <command>sudo /bin/bash --login -c &quot;pwn_nmap_discover_tcp_udp --stop-nse --target-range RANGE --target-exclude-range $WORKSPACE/nmap_targets_exclude.txt --interface eth0 --results-root $WORKSPACE&quot;</command>
31
+ <configuredLocalRules/>
33
32
  </hudson.tasks.Shell>
34
33
  </builders>
35
34
  <publishers>
36
- <htmlpublisher.HtmlPublisher plugin="htmlpublisher@1.14">
35
+ <htmlpublisher.HtmlPublisher plugin="htmlpublisher@1.30">
37
36
  <reportTargets>
38
37
  <htmlpublisher.HtmlPublisherTarget>
39
38
  <reportName>Nmap - Latest Results</reportName>
40
39
  <reportDir>$WORKSPACE</reportDir>
41
- <reportFiles>host_discovery_results.txt, latest_tcp_results.txt, latest_udp_results.txt</reportFiles>
40
+ <reportFiles>nmap_targets.txt, nmap_tcp_results.txt, nmap_udp_results.txt</reportFiles>
42
41
  <alwaysLinkToLastBuild>false</alwaysLinkToLastBuild>
43
42
  <reportTitles>Discovered, TCP, UDP</reportTitles>
44
43
  <keepAll>false</keepAll>
45
44
  <allowMissing>false</allowMissing>
46
45
  <includes>**/*</includes>
46
+ <escapeUnderscores>true</escapeUnderscores>
47
47
  </htmlpublisher.HtmlPublisherTarget>
48
48
  </reportTargets>
49
49
  </htmlpublisher.HtmlPublisher>
50
50
  </publishers>
51
51
  <buildWrappers>
52
- <hudson.plugins.ansicolor.AnsiColorBuildWrapper plugin="ansicolor@0.5.0">
52
+ <hudson.plugins.ansicolor.AnsiColorBuildWrapper plugin="ansicolor@1.0.2">
53
53
  <colorMapName>xterm</colorMapName>
54
54
  </hudson.plugins.ansicolor.AnsiColorBuildWrapper>
55
55
  </buildWrappers>
@@ -1,9 +1,10 @@
1
- <?xml version='1.0' encoding='UTF-8'?>
1
+ <?xml version='1.1' encoding='UTF-8'?>
2
2
  <project>
3
3
  <actions/>
4
4
  <description></description>
5
5
  <keepDependencies>false</keepDependencies>
6
6
  <properties>
7
+ <hudson.plugins.jira.JiraProjectProperty plugin="jira@3.8"/>
7
8
  <jenkins.model.BuildDiscarderProperty>
8
9
  <strategy class="hudson.tasks.LogRotator">
9
10
  <daysToKeep>-1</daysToKeep>
@@ -16,9 +17,6 @@
16
17
  <org.jenkinsci.plugins.gitbucket.GitBucketProjectProperty plugin="gitbucket@0.8">
17
18
  <linkEnabled>false</linkEnabled>
18
19
  </org.jenkinsci.plugins.gitbucket.GitBucketProjectProperty>
19
- <com.dabsquared.gitlabjenkins.connection.GitLabConnectionProperty plugin="gitlab-plugin@1.4.7">
20
- <gitLabConnection></gitLabConnection>
21
- </com.dabsquared.gitlabjenkins.connection.GitLabConnectionProperty>
22
20
  </properties>
23
21
  <scm class="hudson.scm.NullSCM"/>
24
22
  <canRoam>true</canRoam>
@@ -29,27 +27,29 @@
29
27
  <concurrentBuild>false</concurrentBuild>
30
28
  <builders>
31
29
  <hudson.tasks.Shell>
32
- <command>sudo /bin/bash --login -c &quot;cd $WORKSPACE &amp;&amp; /usr/local/bin/nmap_all_live_hosts.sh &lt;CIDR_RANGE&gt; &lt;ETH_INTERFACE&gt;&quot;</command>
30
+ <command>sudo /bin/bash --login -c &quot;pwn_nmap_discover_tcp_udp --stop-nse --target-range RANGE --target-exclude-range $WORKSPACE/nmap_targets_exclude.txt --interface eth0 --results-root $WORKSPACE&quot;</command>
31
+ <configuredLocalRules/>
33
32
  </hudson.tasks.Shell>
34
33
  </builders>
35
34
  <publishers>
36
- <htmlpublisher.HtmlPublisher plugin="htmlpublisher@1.14">
35
+ <htmlpublisher.HtmlPublisher plugin="htmlpublisher@1.30">
37
36
  <reportTargets>
38
37
  <htmlpublisher.HtmlPublisherTarget>
39
38
  <reportName>Nmap - Latest Results</reportName>
40
39
  <reportDir>$WORKSPACE</reportDir>
41
- <reportFiles>host_discovery_results.txt, latest_tcp_results.txt, latest_udp_results.txt</reportFiles>
40
+ <reportFiles>nmap_targets.txt, nmap_tcp_results.txt, nmap_udp_results.txt</reportFiles>
42
41
  <alwaysLinkToLastBuild>false</alwaysLinkToLastBuild>
43
42
  <reportTitles>Discovered, TCP, UDP</reportTitles>
44
43
  <keepAll>false</keepAll>
45
44
  <allowMissing>false</allowMissing>
46
45
  <includes>**/*</includes>
46
+ <escapeUnderscores>true</escapeUnderscores>
47
47
  </htmlpublisher.HtmlPublisherTarget>
48
48
  </reportTargets>
49
49
  </htmlpublisher.HtmlPublisher>
50
50
  </publishers>
51
51
  <buildWrappers>
52
- <hudson.plugins.ansicolor.AnsiColorBuildWrapper plugin="ansicolor@0.5.0">
52
+ <hudson.plugins.ansicolor.AnsiColorBuildWrapper plugin="ansicolor@1.0.2">
53
53
  <colorMapName>xterm</colorMapName>
54
54
  </hudson.plugins.ansicolor.AnsiColorBuildWrapper>
55
55
  </buildWrappers>
@@ -1,9 +1,10 @@
1
- <?xml version='1.0' encoding='UTF-8'?>
1
+ <?xml version='1.1' encoding='UTF-8'?>
2
2
  <project>
3
3
  <actions/>
4
4
  <description></description>
5
5
  <keepDependencies>false</keepDependencies>
6
6
  <properties>
7
+ <hudson.plugins.jira.JiraProjectProperty plugin="jira@3.8"/>
7
8
  <jenkins.model.BuildDiscarderProperty>
8
9
  <strategy class="hudson.tasks.LogRotator">
9
10
  <daysToKeep>-1</daysToKeep>
@@ -16,9 +17,6 @@
16
17
  <org.jenkinsci.plugins.gitbucket.GitBucketProjectProperty plugin="gitbucket@0.8">
17
18
  <linkEnabled>false</linkEnabled>
18
19
  </org.jenkinsci.plugins.gitbucket.GitBucketProjectProperty>
19
- <com.dabsquared.gitlabjenkins.connection.GitLabConnectionProperty plugin="gitlab-plugin@1.4.7">
20
- <gitLabConnection></gitLabConnection>
21
- </com.dabsquared.gitlabjenkins.connection.GitLabConnectionProperty>
22
20
  </properties>
23
21
  <scm class="hudson.scm.NullSCM"/>
24
22
  <canRoam>true</canRoam>
@@ -29,27 +27,29 @@
29
27
  <concurrentBuild>false</concurrentBuild>
30
28
  <builders>
31
29
  <hudson.tasks.Shell>
32
- <command>sudo /bin/bash --login -c &quot;cd $WORKSPACE &amp;&amp; /usr/local/bin/nmap_all_live_hosts.sh &lt;CIDR_RANGE&gt; &lt;ETH_INTERFACE&gt;&quot;</command>
30
+ <command>sudo /bin/bash --login -c &quot;pwn_nmap_discover_tcp_udp --stop-nse --target-range RANGE --target-exclude-range $WORKSPACE/nmap_targets_exclude.txt --interface eth0 --results-root $WORKSPACE&quot;</command>
31
+ <configuredLocalRules/>
33
32
  </hudson.tasks.Shell>
34
33
  </builders>
35
34
  <publishers>
36
- <htmlpublisher.HtmlPublisher plugin="htmlpublisher@1.14">
35
+ <htmlpublisher.HtmlPublisher plugin="htmlpublisher@1.30">
37
36
  <reportTargets>
38
37
  <htmlpublisher.HtmlPublisherTarget>
39
38
  <reportName>Nmap - Latest Results</reportName>
40
39
  <reportDir>$WORKSPACE</reportDir>
41
- <reportFiles>host_discovery_results.txt, latest_tcp_results.txt, latest_udp_results.txt</reportFiles>
40
+ <reportFiles>nmap_targets.txt, nmap_tcp_results.txt, nmap_udp_results.txt</reportFiles>
42
41
  <alwaysLinkToLastBuild>false</alwaysLinkToLastBuild>
43
42
  <reportTitles>Discovered, TCP, UDP</reportTitles>
44
43
  <keepAll>false</keepAll>
45
44
  <allowMissing>false</allowMissing>
46
45
  <includes>**/*</includes>
46
+ <escapeUnderscores>true</escapeUnderscores>
47
47
  </htmlpublisher.HtmlPublisherTarget>
48
48
  </reportTargets>
49
49
  </htmlpublisher.HtmlPublisher>
50
50
  </publishers>
51
51
  <buildWrappers>
52
- <hudson.plugins.ansicolor.AnsiColorBuildWrapper plugin="ansicolor@0.5.0">
52
+ <hudson.plugins.ansicolor.AnsiColorBuildWrapper plugin="ansicolor@1.0.2">
53
53
  <colorMapName>xterm</colorMapName>
54
54
  </hudson.plugins.ansicolor.AnsiColorBuildWrapper>
55
55
  </buildWrappers>
@@ -1,9 +1,10 @@
1
- <?xml version='1.0' encoding='UTF-8'?>
1
+ <?xml version='1.1' encoding='UTF-8'?>
2
2
  <project>
3
3
  <actions/>
4
4
  <description></description>
5
5
  <keepDependencies>false</keepDependencies>
6
6
  <properties>
7
+ <hudson.plugins.jira.JiraProjectProperty plugin="jira@3.8"/>
7
8
  <jenkins.model.BuildDiscarderProperty>
8
9
  <strategy class="hudson.tasks.LogRotator">
9
10
  <daysToKeep>-1</daysToKeep>
@@ -16,9 +17,6 @@
16
17
  <org.jenkinsci.plugins.gitbucket.GitBucketProjectProperty plugin="gitbucket@0.8">
17
18
  <linkEnabled>false</linkEnabled>
18
19
  </org.jenkinsci.plugins.gitbucket.GitBucketProjectProperty>
19
- <com.dabsquared.gitlabjenkins.connection.GitLabConnectionProperty plugin="gitlab-plugin@1.4.7">
20
- <gitLabConnection></gitLabConnection>
21
- </com.dabsquared.gitlabjenkins.connection.GitLabConnectionProperty>
22
20
  </properties>
23
21
  <scm class="hudson.scm.NullSCM"/>
24
22
  <canRoam>true</canRoam>
@@ -29,27 +27,29 @@
29
27
  <concurrentBuild>false</concurrentBuild>
30
28
  <builders>
31
29
  <hudson.tasks.Shell>
32
- <command>sudo /bin/bash --login -c &quot;cd $WORKSPACE &amp;&amp; /usr/local/bin/nmap_all_live_hosts.sh &lt;CIDR_RANGE&gt; &lt;ETH_INTERFACE&gt;&quot;</command>
30
+ <command>sudo /bin/bash --login -c &quot;pwn_nmap_discover_tcp_udp --stop-nse --target-range RANGE --target-exclude-range $WORKSPACE/nmap_targets_exclude.txt --interface eth0 --results-root $WORKSPACE&quot;</command>
31
+ <configuredLocalRules/>
33
32
  </hudson.tasks.Shell>
34
33
  </builders>
35
34
  <publishers>
36
- <htmlpublisher.HtmlPublisher plugin="htmlpublisher@1.14">
35
+ <htmlpublisher.HtmlPublisher plugin="htmlpublisher@1.30">
37
36
  <reportTargets>
38
37
  <htmlpublisher.HtmlPublisherTarget>
39
38
  <reportName>Nmap - Latest Results</reportName>
40
39
  <reportDir>$WORKSPACE</reportDir>
41
- <reportFiles>host_discovery_results.txt, latest_tcp_results.txt, latest_udp_results.txt</reportFiles>
40
+ <reportFiles>nmap_targets.txt, nmap_tcp_results.txt, nmap_udp_results.txt</reportFiles>
42
41
  <alwaysLinkToLastBuild>false</alwaysLinkToLastBuild>
43
42
  <reportTitles>Discovered, TCP, UDP</reportTitles>
44
43
  <keepAll>false</keepAll>
45
44
  <allowMissing>false</allowMissing>
46
45
  <includes>**/*</includes>
46
+ <escapeUnderscores>true</escapeUnderscores>
47
47
  </htmlpublisher.HtmlPublisherTarget>
48
48
  </reportTargets>
49
49
  </htmlpublisher.HtmlPublisher>
50
50
  </publishers>
51
51
  <buildWrappers>
52
- <hudson.plugins.ansicolor.AnsiColorBuildWrapper plugin="ansicolor@0.5.0">
52
+ <hudson.plugins.ansicolor.AnsiColorBuildWrapper plugin="ansicolor@1.0.2">
53
53
  <colorMapName>xterm</colorMapName>
54
54
  </hudson.plugins.ansicolor.AnsiColorBuildWrapper>
55
55
  </buildWrappers>
@@ -1,9 +1,10 @@
1
- <?xml version='1.0' encoding='UTF-8'?>
1
+ <?xml version='1.1' encoding='UTF-8'?>
2
2
  <project>
3
3
  <actions/>
4
4
  <description></description>
5
5
  <keepDependencies>false</keepDependencies>
6
6
  <properties>
7
+ <hudson.plugins.jira.JiraProjectProperty plugin="jira@3.8"/>
7
8
  <jenkins.model.BuildDiscarderProperty>
8
9
  <strategy class="hudson.tasks.LogRotator">
9
10
  <daysToKeep>-1</daysToKeep>
@@ -16,9 +17,6 @@
16
17
  <org.jenkinsci.plugins.gitbucket.GitBucketProjectProperty plugin="gitbucket@0.8">
17
18
  <linkEnabled>false</linkEnabled>
18
19
  </org.jenkinsci.plugins.gitbucket.GitBucketProjectProperty>
19
- <com.dabsquared.gitlabjenkins.connection.GitLabConnectionProperty plugin="gitlab-plugin@1.4.7">
20
- <gitLabConnection></gitLabConnection>
21
- </com.dabsquared.gitlabjenkins.connection.GitLabConnectionProperty>
22
20
  </properties>
23
21
  <scm class="hudson.scm.NullSCM"/>
24
22
  <canRoam>true</canRoam>
@@ -29,27 +27,29 @@
29
27
  <concurrentBuild>false</concurrentBuild>
30
28
  <builders>
31
29
  <hudson.tasks.Shell>
32
- <command>sudo /bin/bash --login -c &quot;cd $WORKSPACE &amp;&amp; /usr/local/bin/nmap_all_live_hosts.sh &lt;CIDR_RANGE&gt; &lt;ETH_INTERFACE&gt;&quot;</command>
30
+ <command>sudo /bin/bash --login -c &quot;pwn_nmap_discover_tcp_udp --stop-nse --target-range RANGE --target-exclude-range $WORKSPACE/nmap_targets_exclude.txt --interface eth0 --results-root $WORKSPACE&quot;</command>
31
+ <configuredLocalRules/>
33
32
  </hudson.tasks.Shell>
34
33
  </builders>
35
34
  <publishers>
36
- <htmlpublisher.HtmlPublisher plugin="htmlpublisher@1.14">
35
+ <htmlpublisher.HtmlPublisher plugin="htmlpublisher@1.30">
37
36
  <reportTargets>
38
37
  <htmlpublisher.HtmlPublisherTarget>
39
38
  <reportName>Nmap - Latest Results</reportName>
40
39
  <reportDir>$WORKSPACE</reportDir>
41
- <reportFiles>host_discovery_results.txt, latest_tcp_results.txt, latest_udp_results.txt</reportFiles>
40
+ <reportFiles>nmap_targets.txt, nmap_tcp_results.txt, nmap_udp_results.txt</reportFiles>
42
41
  <alwaysLinkToLastBuild>false</alwaysLinkToLastBuild>
43
42
  <reportTitles>Discovered, TCP, UDP</reportTitles>
44
43
  <keepAll>false</keepAll>
45
44
  <allowMissing>false</allowMissing>
46
45
  <includes>**/*</includes>
46
+ <escapeUnderscores>true</escapeUnderscores>
47
47
  </htmlpublisher.HtmlPublisherTarget>
48
48
  </reportTargets>
49
49
  </htmlpublisher.HtmlPublisher>
50
50
  </publishers>
51
51
  <buildWrappers>
52
- <hudson.plugins.ansicolor.AnsiColorBuildWrapper plugin="ansicolor@0.5.0">
52
+ <hudson.plugins.ansicolor.AnsiColorBuildWrapper plugin="ansicolor@1.0.2">
53
53
  <colorMapName>xterm</colorMapName>
54
54
  </hudson.plugins.ansicolor.AnsiColorBuildWrapper>
55
55
  </buildWrappers>
@@ -23,20 +23,12 @@ module PWN
23
23
 
24
24
  public_class_method def self.connect(opts = {})
25
25
  ip = opts[:ip]
26
- port = if opts[:port]
27
- opts[:port].to_i
28
- else
29
- 8080
30
- end
26
+ port = opts[:port].to_i ||= 8888
31
27
  username = opts[:username].to_s.scrub
32
28
  base_jenkins_api_uri = "https://#{ip}/ase/services".to_s.scrub
33
29
  api_key = opts[:api_key].to_s.scrub
34
30
  identity_file = opts[:identity_file].to_s.scrub
35
- ssl_bool = if opts[:ssl] == true
36
- opts[:ssl]
37
- else
38
- false
39
- end
31
+ ssl_bool = true if opts[:ssl] ||= false
40
32
 
41
33
  if opts[:proxy]
42
34
  proxy = URI(opts[:proxy])
data/lib/pwn/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PWN
4
- VERSION = '0.4.780'
4
+ VERSION = '0.4.782'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pwn
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.780
4
+ version: 0.4.782
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.
@@ -1263,7 +1263,6 @@ files:
1263
1263
  - etc/userland/aws/jenkins/jenkins
1264
1264
  - etc/userland/aws/jenkins/jobs/pipeline-pwntemplate.xml
1265
1265
  - etc/userland/aws/jenkins/jobs/pipeline-selfupdate.xml
1266
- - etc/userland/aws/jenkins/jobs/pwntemplate-DOMAIN-arachni.xml
1267
1266
  - etc/userland/aws/jenkins/jobs/pwntemplate-DOMAIN-burpsuite.xml
1268
1267
  - etc/userland/aws/jenkins/jobs/pwntemplate-DOMAIN-owasp_zap.xml
1269
1268
  - etc/userland/aws/jenkins/jobs/pwntemplate-DOMAIN-ssllabs-scan.xml
@@ -1315,7 +1314,6 @@ files:
1315
1314
  - etc/userland/docker/jenkins/jenkins
1316
1315
  - etc/userland/docker/jenkins/jobs/pipeline-pwntemplate.xml
1317
1316
  - etc/userland/docker/jenkins/jobs/pipeline-selfupdate.xml
1318
- - etc/userland/docker/jenkins/jobs/pwntemplate-DOMAIN-arachni.xml
1319
1317
  - etc/userland/docker/jenkins/jobs/pwntemplate-DOMAIN-burpsuite.xml
1320
1318
  - etc/userland/docker/jenkins/jobs/pwntemplate-DOMAIN-owasp_zap.xml
1321
1319
  - etc/userland/docker/jenkins/jobs/pwntemplate-DOMAIN-ssllabs-scan.xml
@@ -1366,7 +1364,6 @@ files:
1366
1364
  - etc/userland/qemu/jenkins/jenkins
1367
1365
  - etc/userland/qemu/jenkins/jobs/pipeline-pwntemplate.xml
1368
1366
  - etc/userland/qemu/jenkins/jobs/pipeline-selfupdate.xml
1369
- - etc/userland/qemu/jenkins/jobs/pwntemplate-DOMAIN-arachni.xml
1370
1367
  - etc/userland/qemu/jenkins/jobs/pwntemplate-DOMAIN-burpsuite.xml
1371
1368
  - etc/userland/qemu/jenkins/jobs/pwntemplate-DOMAIN-owasp_zap.xml
1372
1369
  - etc/userland/qemu/jenkins/jobs/pwntemplate-DOMAIN-ssllabs-scan.xml
@@ -1417,7 +1414,6 @@ files:
1417
1414
  - etc/userland/ruby-gem/jenkins/jenkins
1418
1415
  - etc/userland/ruby-gem/jenkins/jobs/pipeline-pwntemplate.xml
1419
1416
  - etc/userland/ruby-gem/jenkins/jobs/pipeline-selfupdate.xml
1420
- - etc/userland/ruby-gem/jenkins/jobs/pwntemplate-DOMAIN-arachni.xml
1421
1417
  - etc/userland/ruby-gem/jenkins/jobs/pwntemplate-DOMAIN-burpsuite.xml
1422
1418
  - etc/userland/ruby-gem/jenkins/jobs/pwntemplate-DOMAIN-owasp_zap.xml
1423
1419
  - etc/userland/ruby-gem/jenkins/jobs/pwntemplate-DOMAIN-ssllabs-scan.xml
@@ -1468,7 +1464,6 @@ files:
1468
1464
  - etc/userland/virtualbox/jenkins/jenkins
1469
1465
  - etc/userland/virtualbox/jenkins/jobs/pipeline-pwntemplate.xml
1470
1466
  - etc/userland/virtualbox/jenkins/jobs/pipeline-selfupdate.xml
1471
- - etc/userland/virtualbox/jenkins/jobs/pwntemplate-DOMAIN-arachni.xml
1472
1467
  - etc/userland/virtualbox/jenkins/jobs/pwntemplate-DOMAIN-burpsuite.xml
1473
1468
  - etc/userland/virtualbox/jenkins/jobs/pwntemplate-DOMAIN-owasp_zap.xml
1474
1469
  - etc/userland/virtualbox/jenkins/jobs/pwntemplate-DOMAIN-ssllabs-scan.xml
@@ -1520,7 +1515,6 @@ files:
1520
1515
  - etc/userland/vmware/jenkins/jenkins
1521
1516
  - etc/userland/vmware/jenkins/jobs/pipeline-pwntemplate.xml
1522
1517
  - etc/userland/vmware/jenkins/jobs/pipeline-selfupdate.xml
1523
- - etc/userland/vmware/jenkins/jobs/pwntemplate-DOMAIN-arachni.xml
1524
1518
  - etc/userland/vmware/jenkins/jobs/pwntemplate-DOMAIN-burpsuite.xml
1525
1519
  - etc/userland/vmware/jenkins/jobs/pwntemplate-DOMAIN-owasp_zap.xml
1526
1520
  - etc/userland/vmware/jenkins/jobs/pwntemplate-DOMAIN-ssllabs-scan.xml
@@ -1,35 +0,0 @@
1
- <?xml version='1.0' encoding='UTF-8'?>
2
- <project>
3
- <actions/>
4
- <description></description>
5
- <keepDependencies>false</keepDependencies>
6
- <properties/>
7
- <scm class="hudson.scm.NullSCM"/>
8
- <canRoam>true</canRoam>
9
- <disabled>true</disabled>
10
- <blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
11
- <blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
12
- <triggers/>
13
- <concurrentBuild>false</concurrentBuild>
14
- <builders>
15
- <hudson.tasks.Shell>
16
- <command>pwn_arachni -t &apos;&lt;URL&gt;&apos; -o $WORKSPACE -b headless -I $WORKSPACE/navigation.instruct</command>
17
- </hudson.tasks.Shell>
18
- </builders>
19
- <publishers>
20
- <htmlpublisher.HtmlPublisher plugin="htmlpublisher@1.13">
21
- <reportTargets>
22
- <htmlpublisher.HtmlPublisherTarget>
23
- <reportName>Arachni Scan Results</reportName>
24
- <reportDir>$WORKSPACE</reportDir>
25
- <reportFiles>index.html</reportFiles>
26
- <alwaysLinkToLastBuild>false</alwaysLinkToLastBuild>
27
- <reportTitles></reportTitles>
28
- <keepAll>false</keepAll>
29
- <allowMissing>false</allowMissing>
30
- </htmlpublisher.HtmlPublisherTarget>
31
- </reportTargets>
32
- </htmlpublisher.HtmlPublisher>
33
- </publishers>
34
- <buildWrappers/>
35
- </project>
@@ -1,35 +0,0 @@
1
- <?xml version='1.0' encoding='UTF-8'?>
2
- <project>
3
- <actions/>
4
- <description></description>
5
- <keepDependencies>false</keepDependencies>
6
- <properties/>
7
- <scm class="hudson.scm.NullSCM"/>
8
- <canRoam>true</canRoam>
9
- <disabled>true</disabled>
10
- <blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
11
- <blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
12
- <triggers/>
13
- <concurrentBuild>false</concurrentBuild>
14
- <builders>
15
- <hudson.tasks.Shell>
16
- <command>pwn_arachni -t &apos;&lt;URL&gt;&apos; -o $WORKSPACE -b headless -I $WORKSPACE/navigation.instruct</command>
17
- </hudson.tasks.Shell>
18
- </builders>
19
- <publishers>
20
- <htmlpublisher.HtmlPublisher plugin="htmlpublisher@1.13">
21
- <reportTargets>
22
- <htmlpublisher.HtmlPublisherTarget>
23
- <reportName>Arachni Scan Results</reportName>
24
- <reportDir>$WORKSPACE</reportDir>
25
- <reportFiles>index.html</reportFiles>
26
- <alwaysLinkToLastBuild>false</alwaysLinkToLastBuild>
27
- <reportTitles></reportTitles>
28
- <keepAll>false</keepAll>
29
- <allowMissing>false</allowMissing>
30
- </htmlpublisher.HtmlPublisherTarget>
31
- </reportTargets>
32
- </htmlpublisher.HtmlPublisher>
33
- </publishers>
34
- <buildWrappers/>
35
- </project>
@@ -1,35 +0,0 @@
1
- <?xml version='1.0' encoding='UTF-8'?>
2
- <project>
3
- <actions/>
4
- <description></description>
5
- <keepDependencies>false</keepDependencies>
6
- <properties/>
7
- <scm class="hudson.scm.NullSCM"/>
8
- <canRoam>true</canRoam>
9
- <disabled>true</disabled>
10
- <blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
11
- <blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
12
- <triggers/>
13
- <concurrentBuild>false</concurrentBuild>
14
- <builders>
15
- <hudson.tasks.Shell>
16
- <command>pwn_arachni -t &apos;&lt;URL&gt;&apos; -o $WORKSPACE -b headless -I $WORKSPACE/navigation.instruct</command>
17
- </hudson.tasks.Shell>
18
- </builders>
19
- <publishers>
20
- <htmlpublisher.HtmlPublisher plugin="htmlpublisher@1.13">
21
- <reportTargets>
22
- <htmlpublisher.HtmlPublisherTarget>
23
- <reportName>Arachni Scan Results</reportName>
24
- <reportDir>$WORKSPACE</reportDir>
25
- <reportFiles>index.html</reportFiles>
26
- <alwaysLinkToLastBuild>false</alwaysLinkToLastBuild>
27
- <reportTitles></reportTitles>
28
- <keepAll>false</keepAll>
29
- <allowMissing>false</allowMissing>
30
- </htmlpublisher.HtmlPublisherTarget>
31
- </reportTargets>
32
- </htmlpublisher.HtmlPublisher>
33
- </publishers>
34
- <buildWrappers/>
35
- </project>
@@ -1,35 +0,0 @@
1
- <?xml version='1.0' encoding='UTF-8'?>
2
- <project>
3
- <actions/>
4
- <description></description>
5
- <keepDependencies>false</keepDependencies>
6
- <properties/>
7
- <scm class="hudson.scm.NullSCM"/>
8
- <canRoam>true</canRoam>
9
- <disabled>true</disabled>
10
- <blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
11
- <blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
12
- <triggers/>
13
- <concurrentBuild>false</concurrentBuild>
14
- <builders>
15
- <hudson.tasks.Shell>
16
- <command>pwn_arachni -t &apos;&lt;URL&gt;&apos; -o $WORKSPACE -b headless -I $WORKSPACE/navigation.instruct</command>
17
- </hudson.tasks.Shell>
18
- </builders>
19
- <publishers>
20
- <htmlpublisher.HtmlPublisher plugin="htmlpublisher@1.13">
21
- <reportTargets>
22
- <htmlpublisher.HtmlPublisherTarget>
23
- <reportName>Arachni Scan Results</reportName>
24
- <reportDir>$WORKSPACE</reportDir>
25
- <reportFiles>index.html</reportFiles>
26
- <alwaysLinkToLastBuild>false</alwaysLinkToLastBuild>
27
- <reportTitles></reportTitles>
28
- <keepAll>false</keepAll>
29
- <allowMissing>false</allowMissing>
30
- </htmlpublisher.HtmlPublisherTarget>
31
- </reportTargets>
32
- </htmlpublisher.HtmlPublisher>
33
- </publishers>
34
- <buildWrappers/>
35
- </project>
@@ -1,35 +0,0 @@
1
- <?xml version='1.0' encoding='UTF-8'?>
2
- <project>
3
- <actions/>
4
- <description></description>
5
- <keepDependencies>false</keepDependencies>
6
- <properties/>
7
- <scm class="hudson.scm.NullSCM"/>
8
- <canRoam>true</canRoam>
9
- <disabled>true</disabled>
10
- <blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
11
- <blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
12
- <triggers/>
13
- <concurrentBuild>false</concurrentBuild>
14
- <builders>
15
- <hudson.tasks.Shell>
16
- <command>pwn_arachni -t &apos;&lt;URL&gt;&apos; -o $WORKSPACE -b headless -I $WORKSPACE/navigation.instruct</command>
17
- </hudson.tasks.Shell>
18
- </builders>
19
- <publishers>
20
- <htmlpublisher.HtmlPublisher plugin="htmlpublisher@1.13">
21
- <reportTargets>
22
- <htmlpublisher.HtmlPublisherTarget>
23
- <reportName>Arachni Scan Results</reportName>
24
- <reportDir>$WORKSPACE</reportDir>
25
- <reportFiles>index.html</reportFiles>
26
- <alwaysLinkToLastBuild>false</alwaysLinkToLastBuild>
27
- <reportTitles></reportTitles>
28
- <keepAll>false</keepAll>
29
- <allowMissing>false</allowMissing>
30
- </htmlpublisher.HtmlPublisherTarget>
31
- </reportTargets>
32
- </htmlpublisher.HtmlPublisher>
33
- </publishers>
34
- <buildWrappers/>
35
- </project>
@@ -1,35 +0,0 @@
1
- <?xml version='1.0' encoding='UTF-8'?>
2
- <project>
3
- <actions/>
4
- <description></description>
5
- <keepDependencies>false</keepDependencies>
6
- <properties/>
7
- <scm class="hudson.scm.NullSCM"/>
8
- <canRoam>true</canRoam>
9
- <disabled>true</disabled>
10
- <blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
11
- <blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
12
- <triggers/>
13
- <concurrentBuild>false</concurrentBuild>
14
- <builders>
15
- <hudson.tasks.Shell>
16
- <command>pwn_arachni -t &apos;&lt;URL&gt;&apos; -o $WORKSPACE -b headless -I $WORKSPACE/navigation.instruct</command>
17
- </hudson.tasks.Shell>
18
- </builders>
19
- <publishers>
20
- <htmlpublisher.HtmlPublisher plugin="htmlpublisher@1.13">
21
- <reportTargets>
22
- <htmlpublisher.HtmlPublisherTarget>
23
- <reportName>Arachni Scan Results</reportName>
24
- <reportDir>$WORKSPACE</reportDir>
25
- <reportFiles>index.html</reportFiles>
26
- <alwaysLinkToLastBuild>false</alwaysLinkToLastBuild>
27
- <reportTitles></reportTitles>
28
- <keepAll>false</keepAll>
29
- <allowMissing>false</allowMissing>
30
- </htmlpublisher.HtmlPublisherTarget>
31
- </reportTargets>
32
- </htmlpublisher.HtmlPublisher>
33
- </publishers>
34
- <buildWrappers/>
35
- </project>