{"id":13538527,"url":"https://github.com/diego-treitos/linux-smart-enumeration","last_synced_at":"2025-05-14T20:08:43.540Z","repository":{"id":38359768,"uuid":"170493053","full_name":"diego-treitos/linux-smart-enumeration","owner":"diego-treitos","description":"Linux enumeration tool for pentesting and CTFs with verbosity levels","archived":false,"fork":false,"pushed_at":"2023-12-25T14:46:47.000Z","size":11065,"stargazers_count":3565,"open_issues_count":3,"forks_count":584,"subscribers_count":56,"default_branch":"master","last_synced_at":"2025-04-13T14:07:24.012Z","etag":null,"topics":["ctfs","hacking","hackthebox","linux-enumeration","oscp","pentesting","privesc","privilege-escalation"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/diego-treitos.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2019-02-13T11:02:21.000Z","updated_at":"2025-04-12T12:51:38.000Z","dependencies_parsed_at":"2023-12-25T16:33:26.891Z","dependency_job_id":null,"html_url":"https://github.com/diego-treitos/linux-smart-enumeration","commit_stats":null,"previous_names":[],"tags_count":56,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diego-treitos%2Flinux-smart-enumeration","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diego-treitos%2Flinux-smart-enumeration/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diego-treitos%2Flinux-smart-enumeration/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diego-treitos%2Flinux-smart-enumeration/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/diego-treitos","download_url":"https://codeload.github.com/diego-treitos/linux-smart-enumeration/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248724637,"owners_count":21151561,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ctfs","hacking","hackthebox","linux-enumeration","oscp","pentesting","privesc","privilege-escalation"],"created_at":"2024-08-01T09:01:13.120Z","updated_at":"2025-04-13T14:07:29.550Z","avatar_url":"https://github.com/diego-treitos.png","language":"Shell","funding_links":[],"categories":["\u003ca id=\"c7f35432806520669b15a28161a4d26a\"\u003e\u003c/a\u003eCTF\u0026\u0026HTB","Linux","漏洞库_漏洞靶场","🚀 Elevating Privileges","Operating Systems","Pentesting","Post-Exploitation \u0026 Lateral Movement"],"sub_categories":["\u003ca id=\"e64cedb2d91d06b3eeac5ea414e12b27\"\u003e\u003c/a\u003eCTF","Tools","资源传输下载","Linux","Enumeration"],"readme":"\n\nFirst, a couple of useful oneliners ;)\n\n```console\nwget \"https://github.com/diego-treitos/linux-smart-enumeration/releases/latest/download/lse.sh\" -O lse.sh;chmod 700 lse.sh\n```\n\n```console\ncurl \"https://github.com/diego-treitos/linux-smart-enumeration/releases/latest/download/lse.sh\" -Lo lse.sh;chmod 700 lse.sh\n```\n\nNote that since version `2.10` you can *serve the script* to other hosts with the `-S` flag!\n\n# linux-smart-enumeration\nLinux enumeration tools for pentesting and CTFs\n\nThis project was inspired by https://github.com/rebootuser/LinEnum and uses\nmany of its tests.\n\nUnlike LinEnum, `lse` tries to gradualy expose the information depending on its importance from a privesc point of view.\n\n## What is it?\n\nThis shell script will show relevant information about the security of the local Linux system, helping to escalate privileges.\n\nFrom version **2.0** it is *mostly* **POSIX** compliant and tested with `shellcheck` and `posh`.\n\nIt can also **monitor processes to discover recurrent program executions**. It monitors while it is executing all the other tests so you save some time. By default it monitors during 1 minute but you can choose the watch time with the `-p` parameter.\n\nIt has 3 levels of verbosity so you can control how much information you see.\n\nIn the default level you should see the highly important security flaws in the system. The level `1` (`./lse.sh -l1`) shows\ninteresting information that should help you to privesc. The level `2` (`./lse.sh -l2`) will just dump all the information it\ngathers about the system.\n\nBy default it will ask you some questions: mainly the current user password (if you know it ;) so it can do some additional tests.\n\n## How to use it?\n\nThe idea is to get the information gradually.\n\nFirst you should execute it just like `./lse.sh`. If you see some green `yes!`, you probably have already some good stuff to work with.\n\nIf not, you should try the `level 1` verbosity with `./lse.sh -l1` and you will see some more information that can be interesting.\n\nIf that does not help, `level 2` will just dump everything you can gather about the service using `./lse.sh -l2`. In this case you might find useful to use `./lse.sh -l2 | less -r`.\n\nYou can also select what tests to execute by passing the `-s` parameter. With it you can select specific tests or sections to be executed. For example `./lse.sh -l2 -s usr010,net,pro` will execute the test `usr010` and all the tests in the sections `net` and `pro`.\n\n\n```console\nUse: ./lse.sh [options]\n\n OPTIONS\n  -c           Disable color\n  -i           Non interactive mode\n  -h           This help\n  -l LEVEL     Output verbosity level\n                 0: Show highly important results. (default)\n                 1: Show interesting results.\n                 2: Show all gathered information.\n  -s SELECTION Comma separated list of sections or tests to run. Available\n               sections:\n                 usr: User related tests.\n                 sud: Sudo related tests.\n                 fst: File system related tests.\n                 sys: System related tests.\n                 sec: Security measures related tests.\n                 ret: Recurren tasks (cron, timers) related tests.\n                 net: Network related tests.\n                 srv: Services related tests.\n                 pro: Processes related tests.\n                 sof: Software related tests.\n                 ctn: Container (docker, lxc) related tests.\n                 cve: CVE related tests.\n               Specific tests can be used with their IDs (i.e.: usr020,sud)\n  -e PATHS     Comma separated list of paths to exclude. This allows you\n               to do faster scans at the cost of completeness\n  -p SECONDS   Time that the process monitor will spend watching for\n               processes. A value of 0 will disable any watch (default: 60)\n  -S           Serve the lse.sh script in this host so it can be retrieved\n               from a remote host.\n```\n## Is it pretty?\n\n### Usage demo\n\nAlso available in [webm video](https://raw.githubusercontent.com/diego-treitos/linux-smart-enumeration/master/screenshots/lse.webm)\n\n![LSE Demo](https://github.com/diego-treitos/linux-smart-enumeration/raw/master/screenshots/lse.gif)\n\n### Level 0 (default) output sample\n\n![LSE level0](https://raw.githubusercontent.com/diego-treitos/linux-smart-enumeration/master/screenshots/lse_level0.png)\n\n### Level 1 verbosity output sample\n\n![LSE level1](https://raw.githubusercontent.com/diego-treitos/linux-smart-enumeration/master/screenshots/lse_level1.png)\n\n### Level 2 verbosity output sample\n\n![LSE level2](https://raw.githubusercontent.com/diego-treitos/linux-smart-enumeration/master/screenshots/lse_level2.png)\n\n## Examples\n\nDirect execution oneliners\n\n```console\nbash \u003c(wget -q -O - \"https://github.com/diego-treitos/linux-smart-enumeration/releases/latest/download/lse.sh\") -l2 -i\n```\n\n```console\nbash \u003c(curl -s \"https://github.com/diego-treitos/linux-smart-enumeration/releases/latest/download/lse.sh\") -l1 -i\n```\n\n\n## Buy me a beer\nFeel free to buy me a beer if this script was useful `:)`\n\n**₿**: `1DNBZRAzP6WVnTeBPoYvnDtjxnS1S8Gnxk`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiego-treitos%2Flinux-smart-enumeration","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdiego-treitos%2Flinux-smart-enumeration","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiego-treitos%2Flinux-smart-enumeration/lists"}