pwn 0.5.265 → 0.5.266
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 +4 -4
- data/.rubocop_todo.yml +3 -2
- data/README.md +3 -3
- data/lib/pwn/version.rb +1 -1
- data/packer/provisioners/aliases.rb +1 -1
- data/packer/provisioners/radare2.sh +15 -14
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7c148093c00d6526e0b9b96087a47651f2ef05f55be540285727d308384e25cb
|
4
|
+
data.tar.gz: 4fc2a1ba0694946a6c24f9a2ecde19d1864962cf75b80ef34f986d8eba259b7e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 478afd652b68437a5ca5d8200fa871ff155413c24a2104ecb7dccb49b9e11d26d39e36de0f494a4bae2f303b692f433434be749aa593e20802cff6d1b437de52
|
7
|
+
data.tar.gz: 8778a2df478bb6c4f37d5c29288e9321db279a40a0f43f1426d6e699ff0481ae4d65e0330f9d113398c54a2b708d12b995d16d5981f0cedcbfef6d923cbcc8d5
|
data/.rubocop_todo.yml
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
# This configuration was generated by
|
2
2
|
# `rubocop --auto-gen-config`
|
3
|
-
# on 2025-04-
|
3
|
+
# on 2025-04-30 21:48:17 UTC using RuboCop version 1.75.4.
|
4
4
|
# The point is for the user to remove these configuration records
|
5
5
|
# one by one as the offenses are removed from the code base.
|
6
6
|
# Note that changes in the inspected code, or installation of new
|
7
7
|
# versions of RuboCop, may require this file to be generated again.
|
8
8
|
|
9
|
-
# Offense count:
|
9
|
+
# Offense count: 22
|
10
10
|
# This cop supports safe autocorrection (--autocorrect).
|
11
11
|
# Configuration parameters: Max, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns, SplitStrings.
|
12
12
|
# URISchemes: http, https
|
@@ -23,6 +23,7 @@ Layout/LineLength:
|
|
23
23
|
- 'lib/pwn/reports/sast.rb'
|
24
24
|
- 'lib/pwn/reports/uri_buster.rb'
|
25
25
|
- 'lib/pwn/sast/banned_function_calls_c.rb'
|
26
|
+
- 'packer/provisioners/aliases.rb'
|
26
27
|
|
27
28
|
# Offense count: 9
|
28
29
|
# Configuration parameters: AllowedMethods, AllowedPatterns.
|
data/README.md
CHANGED
@@ -37,7 +37,7 @@ $ cd /opt/pwn
|
|
37
37
|
$ ./install.sh
|
38
38
|
$ ./install.sh ruby-gem
|
39
39
|
$ pwn
|
40
|
-
pwn[v0.5.
|
40
|
+
pwn[v0.5.266]:001 >>> PWN.help
|
41
41
|
```
|
42
42
|
|
43
43
|
[](https://youtu.be/G7iLUY4FzsI)
|
@@ -52,7 +52,7 @@ $ rvm use ruby-3.4.1@pwn
|
|
52
52
|
$ gem uninstall --all --executables pwn
|
53
53
|
$ gem install --verbose pwn
|
54
54
|
$ pwn
|
55
|
-
pwn[v0.5.
|
55
|
+
pwn[v0.5.266]:001 >>> PWN.help
|
56
56
|
```
|
57
57
|
|
58
58
|
If you're using a multi-user install of RVM do:
|
@@ -62,7 +62,7 @@ $ rvm use ruby-3.4.1@pwn
|
|
62
62
|
$ rvmsudo gem uninstall --all --executables pwn
|
63
63
|
$ rvmsudo gem install --verbose pwn
|
64
64
|
$ pwn
|
65
|
-
pwn[v0.5.
|
65
|
+
pwn[v0.5.266]:001 >>> PWN.help
|
66
66
|
```
|
67
67
|
|
68
68
|
PWN periodically upgrades to the latest version of Ruby which is reflected in `/opt/pwn/.ruby-version`. The easiest way to upgrade to the latest version of Ruby from a previous PWN installation is to run the following script:
|
data/lib/pwn/version.rb
CHANGED
@@ -12,7 +12,7 @@ File.open(alias_file, 'w') do |f|
|
|
12
12
|
f.puts "alias ls='ls --color=auto'"
|
13
13
|
f.puts "alias phantomjs='export QT_QPA_PLATFORM=offscreen; phantomjs'"
|
14
14
|
f.puts "alias prep='ps -ef | grep'"
|
15
|
-
f.puts "alias r2='setarch $(uname -m) -R r2 -c \"v r2-pwn-layout\" -c \"decai -e model=0dayInc:latest\" -c \"decai -e cmds=pdc\" -c \"decai -e prompt=Transform this pseudocode and respond ONLY with plain code (NO explanations, comments or markdown), Change \"goto\" into if/else/for/while, Simplify as much as possible, use better variable names, take function arguments and strings from comments like \"string:\", Reduce lines of code and fit everything in a single function, removing all dead code. Most importantly, determine if this code is exploitable.\"'"
|
15
|
+
f.puts "alias r2='setarch $(uname -m) -R /usr/local/bin/r2 -c \"v r2-pwn-layout\" -c \"decai -e model=0dayInc:latest\" -c \"decai -e cmds=pdc\" -c \"decai -e prompt=Transform this pseudocode and respond ONLY with plain code (NO explanations, comments or markdown), Change \"goto\" into if/else/for/while, Simplify as much as possible, use better variable names, take function arguments and strings from comments like \"string:\", Reduce lines of code and fit everything in a single function, removing all dead code. Most importantly, determine if this code is exploitable.\"'"
|
16
16
|
f.puts "alias sup='sudo -i'"
|
17
17
|
f.puts "alias vi='vim -i NONE -b'"
|
18
18
|
f.puts "alias vim='vim -i NONE -b'"
|
@@ -1,5 +1,6 @@
|
|
1
1
|
#!/bin/bash --login
|
2
2
|
source /etc/profile.d/globals.sh
|
3
|
+
r2_root='/usr/local/bin'
|
3
4
|
|
4
5
|
# This is the preferred method of installation
|
5
6
|
# to support radare2 plugin installation (e.g. r2ghidra)
|
@@ -8,21 +9,21 @@ cd /opt && sudo git clone https://github.com/radareorg/radare2
|
|
8
9
|
sudo chown -R $USER:$USER radare2
|
9
10
|
cd radare2 && ./sys/install.sh
|
10
11
|
|
11
|
-
r2 -qq -c 'r2pm -U' /bin/id
|
12
|
-
r2 -qq -c 'r2pm -ci decai' /bin/id
|
13
|
-
r2 -qq -c 'r2pm -ci r2ai-plugin' /bin/id
|
14
|
-
r2 -qq -c 'r2pm -ci r2dec' /bin/id
|
15
|
-
r2 -qq -c 'r2pm -ci r2ghidra-sleigh' /bin/id
|
16
|
-
r2 -qq -c 'r2pm -ci r2ghidra' /bin/id
|
17
|
-
r2 -qq -c 'r2pm -ci r2frida' /bin/id
|
12
|
+
${r2_root}/r2 -qq -c 'r2pm -U' /bin/id
|
13
|
+
${r2_root}/r2 -qq -c 'r2pm -ci decai' /bin/id
|
14
|
+
${r2_root}/r2 -qq -c 'r2pm -ci r2ai-plugin' /bin/id
|
15
|
+
${r2_root}/r2 -qq -c 'r2pm -ci r2dec' /bin/id
|
16
|
+
${r2_root}/r2 -qq -c 'r2pm -ci r2ghidra-sleigh' /bin/id
|
17
|
+
${r2_root}/r2 -qq -c 'r2pm -ci r2ghidra' /bin/id
|
18
|
+
${r2_root}/r2 -qq -c 'r2pm -ci r2frida' /bin/id
|
18
19
|
|
19
|
-
r2pm -U
|
20
|
-
r2pm -ci decai
|
21
|
-
r2pm -ci r2ai-plugin
|
22
|
-
r2pm -ci r2dec
|
23
|
-
r2pm -ci r2ghidra-sleigh
|
24
|
-
r2pm -ci r2ghidra
|
25
|
-
r2pm -ci r2frida
|
20
|
+
${r2_root}/r2pm -U
|
21
|
+
${r2_root}/r2pm -ci decai
|
22
|
+
${r2_root}/r2pm -ci r2ai-plugin
|
23
|
+
${r2_root}/r2pm -ci r2dec
|
24
|
+
${r2_root}/r2pm -ci r2ghidra-sleigh
|
25
|
+
${r2_root}/r2pm -ci r2ghidra
|
26
|
+
${r2_root}/r2pm -ci r2frida
|
26
27
|
|
27
28
|
mkdir -p ~/.local/share/radare2/r2panels
|
28
29
|
cp $PWN_ROOT/third-party/r2-pwn-layout ~/.local/share/radare2/r2panels/
|