Closed noraj closed 4 years ago
Script uses standard TMPDIR, it is not writable by account you are using. You need to find a writable path and change/create the TMPDIR environmental variable.
find a writable path:
find . -writable
Change TMPDIR environmental variable to this path:
export TMPDIR=/new/writbl/path
runscript
Don't you think it's more intuitive & natural to work in the current directory? Even if working in tmpdir is more "stealth" and has more chance to work.
@noraj, LES is using heredocs all over the places. Herdocs in Bash (and most other shells) are implemented through creation of temporary files in /tmp
. So if your /tmp
is not writable then IMO there's no easy workaround for this.
So I should do TMPDIR=$(pwd) bash les.sh
instead?
Not sure if it works - try it. Also you can grab the output of uname -a
command on your target and then run LES on your other machine: les.sh --uname <uname-string>
. This is not ideal (as it does not conduct some additional checks) but it's better than nothing.
I don't have access to this machine anymore, let's close this.
When
/tmp
is not writable but/www/tmp
is. I downloadedlinux-exploit-suggester
to/www/tmp
and ran it:However I ran https://github.com/jondonas/linux-exploit-suggester-2 and https://github.com/rebootuser/LinEnum without problem.