Comments (13)
Hey @dmknght,
Could you execute
WF=`find /dev /srv /proc /home /media /sys /lost+found /run /etc /root /var /tmp /mnt /boot /opt -type d -maxdepth $MAXPATH_FIND_W -writable 2>/dev/null | sort`
Modify (but not delete as I need to see how many results you have) any confidential info and share the value of the variable $WF? I would need that value to replay the error
from peass-ng.
Hey @dmknght,
Could you executeWF=`find /dev /srv /proc /home /media /sys /lost+found /run /etc /root /var /tmp /mnt /boot /opt -type d -maxdepth $MAXPATH_FIND_W -writable 2>/dev/null | sort`
Modify (but not delete as I need to see how many results you have) any confidential info and share the value of the variable $WF? I would need that value to replay the error
Well it is empty. So i guess you should make if-else to display "not found"
from peass-ng.
That line is looking for writable files in your disk, if it's empty that means you don't have writable permissions over any file.
is that true?
from peass-ng.
That line is looking for writable files in your disk, if it's empty that means you don't have writable permissions over any file.
is that true?
I have in $HOME
. But you are using -type d
which is directory. So as you said, you should use -type f
for files.
p/s: OFC i'm having writeable files and folders in $HOME
from peass-ng.
Sorry mate, it is looking for writable directories not files, and thats good. The problem here is that you have too much writable directories that break grep. Therefore $WF shouldn't be empty.
Anyway, when I have time I will try to replicate an environment with thousands of writable directories and will find way to fix it in an efficient manner. In the meantime you can change in line 15 the code MAXPATH_FIND_W="7"
for MAXPATH_FIND_W="3"
as temporary fix.
from peass-ng.
Sorry mate, it is looking for writable directories not files, and thats good. The problem here is that you have too much writable directories that break grep. Therefore $WF shouldn't be empty.
Anyway, when I have time I will try to replicate an environment with thousands of writable directories and will find way to fix it in an efficient manner. In the meantime you can change in line 15 the codeMAXPATH_FIND_W="7"
forMAXPATH_FIND_W="3"
as temporary fix.
ah shit i copied your whole command and $MAXPATH_FIND_W
was empty value so it didn't work. So i tested with find /root /tmp -type d -maxdepth 3 -writable 2>/dev/null
and it showed.
from peass-ng.
BTW the search for private key is extremely slow because of grep so many files. So do you have any idea to improve it or avoid it?
from peass-ng.
The problem here is that you have too much writable directories that break grep
The maximum is 127 or 255 am i right?
from peass-ng.
Hi @dmknght,
I have uploaded a new linpeas version. In this version if should automatically check if that error is occurring an in that case find less writable directories until the error stop appearing.
Could you check if it's working on your environment?
from peass-ng.
Hi @dmknght,
I have uploaded a new linpeas version. In this version if should automatically check if that error is occurring an in that case find less writable directories until the error stop appearing.
Could you check if it's working on your environment?
I'm testing it right now :D
from peass-ng.
Hi @dmknght,
I have uploaded a new linpeas version. In this version if should automatically check if that error is occurring an in that case find less writable directories until the error stop appearing.
Could you check if it's working on your environment?
./linpeas.sh: 166: 7=6: not found
. It shows this in a loop
from peass-ng.
Sorry mate, try now
from peass-ng.
Sorry mate, try now
looks good. New version brings other problem i'm creating nnew issue right now.
from peass-ng.
Related Issues (20)
- not detecting PUTTY credentials in the registry HOT 1
- WinPEAS and LinPEAS do auto exploitation? HOT 1
- Could not load file or assembly with One liner to download and execute winPEASany from memory in a PS shell? HOT 1
- Build Error HOT 2
- Cargo CVE-2023-38497 HOT 1
- Show where the passwords in config PHP files were found. HOT 1
- Searching passwords in config PHP files HOT 1
- WinPEAS - Exploit Suggester Feature
- Unable to skip deep file scans in WinPEASx64
- LinPEAS stuck at "Users with console" stage (Oracle Linux 7)
- [WinPEAS.ps1] - Process is terminated due to StackOverflowException
- Script (linpeas_base.sh) does not run/work HOT 1
- PrintNightmare in 2024
- Exchange Watson with wesng
- Winpeas Crash - Requested Registry
- Powershell history bug? HOT 1
- AWS EC2 detected as Tencent CVM causing long run time due to incorrect Tencent enumeration HOT 2
- Winpeas logs full of garbage exceptions. Error looking for regex define ?\(['"](\w*pass|\w*pwd|\w*user|\w*datab) HOT 8
- serious formatting issues in output of newest release -- Release refs/heads/master 20240414-ed0a5fac
- Support for Windows LAPS
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from peass-ng.