Skip to content

Commit e607f02

Browse files
authored
fix(cupp): remove cd in wrapper script that prevents writing output to cwd (#4918)
The wrapper script does 'cd /usr/share/cupp' before exec, causing cupp to write output files (wordlists) to the install directory instead of the user's working directory. This results in PermissionError since /usr/share/cupp is owned by root. The cd is unnecessary — cupp.py already resolves its config path absolutely via os.path.dirname(os.path.realpath(__file__)). Also update depends from python2 to python since cupp uses Python 3 syntax and the wrapper already invokes python3.
1 parent ce2ad4c commit e607f02

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

packages/cupp/PKGBUILD

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ pkgdesc='Common User Password Profiler'
88
url='http://www.remote-exploit.org/?page_id=418'
99
groups=('blackarch' 'blackarch-cracker')
1010
license=('GPL3')
11-
depends=('python2')
11+
depends=('python')
1212
makedepends=('git')
1313
arch=('any')
1414
source=("git+https://github.com/Mebus/$pkgname.git")
@@ -35,8 +35,7 @@ package() {
3535

3636
cat > "$pkgdir/usr/bin/$pkgname" << EOF
3737
#!/bin/sh
38-
cd /usr/share/$pkgname
39-
exec python3 $pkgname.py "\$@"
38+
exec python3 /usr/share/$pkgname/$pkgname.py "\$@"
4039
EOF
4140

4241
chmod +x "$pkgdir/usr/bin/$pkgname"

0 commit comments

Comments
 (0)