pwn 0.5.267 → 0.5.268
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/Gemfile +1 -1
- data/README.md +3 -3
- data/lib/pwn/version.rb +1 -1
- data/packer/provisioners/aliases.rb +3 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 557a11a6946ab3c181a8aebc93456c923c7b151aa1be339cd2363d5695edb0ad
|
4
|
+
data.tar.gz: 2d3069cd6a24a8db3f95b0b4c00b18933e1cb44d14eb2aa3959be8d44220421c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2aedce3f1e24b45a250c7e4adb8730bee4e0f68e5a1a3edf19081afb351b7607588560586ac8d2b85d53a037a4970e1ac4af480082de8153999352b800c03cd8
|
7
|
+
data.tar.gz: 4dbc95e142d81fff530ba6be3e0d9b9fedde3f6be9fcd57c0c99b3465b5306012838fec7706cfbce96306a5f03a070be81cb2cc6b60b769f1d63019085a91d71
|
data/Gemfile
CHANGED
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.268]: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.268]: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.268]: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
@@ -2,6 +2,8 @@
|
|
2
2
|
# frozen_string_literal: true
|
3
3
|
|
4
4
|
alias_file = '/etc/profile.d/aliases.sh'
|
5
|
+
r2_prompt = "Transform the output of pdga in r2. The output is a two column disasm and decompilation pipe-delimited output using the Ghidra decompiler). Your job is to respond ONLY with actual 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."
|
6
|
+
|
5
7
|
system("sudo touch #{alias_file}")
|
6
8
|
system("sudo chmod 777 #{alias_file}")
|
7
9
|
File.open(alias_file, 'w') do |f|
|
@@ -12,7 +14,7 @@ File.open(alias_file, 'w') do |f|
|
|
12
14
|
f.puts "alias ls='ls --color=auto'"
|
13
15
|
f.puts "alias phantomjs='export QT_QPA_PLATFORM=offscreen; phantomjs'"
|
14
16
|
f.puts "alias prep='ps -ef | grep'"
|
15
|
-
f.puts "alias r2='setarch $(uname -m) -R /usr/local/bin/r2 -c \"v r2-pwn-layout\" -c \"decai -e model=
|
17
|
+
f.puts "alias r2='setarch $(uname -m) -R /usr/local/bin/r2 -c \"v r2-pwn-layout\" -c \"decai -e model=Radare2:latest\" -c \"decai -e cmds=pdga\" -c \"decai -e prompt=#{prompt}\"'"
|
16
18
|
f.puts "alias sup='sudo -i'"
|
17
19
|
f.puts "alias vi='vim -i NONE -b'"
|
18
20
|
f.puts "alias vim='vim -i NONE -b'"
|
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.5.
|
4
|
+
version: 0.5.268
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- 0day Inc.
|
@@ -911,14 +911,14 @@ dependencies:
|
|
911
911
|
requirements:
|
912
912
|
- - '='
|
913
913
|
- !ruby/object:Gem::Version
|
914
|
-
version: 3.1.
|
914
|
+
version: 3.1.4
|
915
915
|
type: :runtime
|
916
916
|
prerelease: false
|
917
917
|
version_requirements: !ruby/object:Gem::Requirement
|
918
918
|
requirements:
|
919
919
|
- - '='
|
920
920
|
- !ruby/object:Gem::Version
|
921
|
-
version: 3.1.
|
921
|
+
version: 3.1.4
|
922
922
|
- !ruby/object:Gem::Dependency
|
923
923
|
name: rubocop
|
924
924
|
requirement: !ruby/object:Gem::Requirement
|