Giter Club home page Giter Club logo

Comments (3)

diego-treitos avatar diego-treitos commented on June 15, 2024 1

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.

diego-treitos avatar diego-treitos commented on June 15, 2024 1

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.

Techbrunch avatar Techbrunch commented on June 15, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.