Comments (3)
Hello @Techbrunch I like the idea very much. Listing processes belonging to users that have shell is certainly interesting. Thank you for the idea!
I am looking into it.
from linux-smart-enumeration.
I created a branch with a new test that should include your idea: https://github.com/diego-treitos/linux-smart-enumeration/blob/fix%2325/lse.sh
I added the test pro020
. You can test it with ./lse.sh -i -l1 -s pro020,usr030
.
Please, let me know if this is what you asked for. If everything is ok I will merge it to master
from linux-smart-enumeration.
Perfect !
==================================================================( users )=====
[*] usr030 Other users with shell.......................................... yes!
---
root:x:0:0:root:/root:/bin/bash
tom:x:1000:1000:tom,,,:/home/tom:/bin/bash
mark:x:1001:1001:Mark,,,:/home/mark:/bin/bash
---
==============================================================( processes )=====
[*] pro020 Processes running by non-root users with shell.................. yes!
---
------ tom ------
UID PID PPID C STIME TTY TIME CMD
tom 1219 1 0 Mar30 ? 00:00:12 /usr/bin/node /var/www/myplace/app.js
tom 1408 1 0 Mar30 ? 00:00:12 /usr/bin/node /var/scheduler/app.js
------ mark ------
UID PID PPID C STIME TTY TIME CMD
mark 20297 1 0 14:31 ? 00:00:00 /lib/systemd/systemd --user
mark 20302 20297 0 14:31 ? 00:00:00 (sd-pam)
mark 20307 20295 0 14:31 ? 00:00:00 sshd: mark@pts/0
mark 20308 20307 0 14:31 pts/0 00:00:00 -bash
mark 20335 20308 0 14:34 pts/0 00:00:00 /bin/bash ./lse.sh -i -l1 -s pro020,usr030
mark 20356 20335 0 14:34 pts/0 00:00:00 /bin/bash ./lse.sh -i -l1 -s pro020,usr030
mark 20366 20356 0 14:34 pts/0 00:00:00 ps -u mark -f
---
==================================( FINISHED )==================================
from linux-smart-enumeration.
Related Issues (20)
- LSE Color issues HOT 1
- sud000 missing alternate hostname results HOT 2
- [Request] User Friendly Reports HOT 1
- Uncommon setuid binaries HOT 1
- Suggestion: Search for passwords in commonly used log files HOT 1
- Consider dropping white/black colors HOT 3
- Missing "doas" configuration checking HOT 4
- Elevate NFS share checking up to l1 from l2 HOT 2
- too many /snap/core/ HOT 3
- Check ptrace_scope HOT 1
- Check for existing tmux sessions HOT 10
- Kali HOT 1
- Kali- Linux
- Serve option contain invalid netcat flag "-q" HOT 4
- Check for anonymous MongoDB authentication HOT 1
- Common setuid binary `fusermount3` HOT 1
- Disable color not working for process monitor HOT 1
- `lse_procmon` incompatibility with busybox `ps` HOT 2
- Colour issues dependent on system? HOT 4
- Add CVE test for DirtyCred
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 linux-smart-enumeration.