{"id":13842793,"url":"https://github.com/tasooshi/pentesting-cookbook","last_synced_at":"2026-04-08T17:37:22.179Z","repository":{"id":43012578,"uuid":"238564322","full_name":"tasooshi/pentesting-cookbook","owner":"tasooshi","description":"A set of recipes useful in pentesting and red teaming scenarios","archived":false,"fork":false,"pushed_at":"2023-07-07T19:01:01.000Z","size":1501,"stargazers_count":137,"open_issues_count":0,"forks_count":34,"subscribers_count":10,"default_branch":"master","last_synced_at":"2024-08-05T17:33:19.218Z","etag":null,"topics":["cheatsheet","pentesting","redteam","security","security-tools"],"latest_commit_sha":null,"homepage":"","language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tasooshi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2020-02-05T22:51:09.000Z","updated_at":"2024-08-02T12:43:58.000Z","dependencies_parsed_at":"2024-01-31T03:56:52.157Z","dependency_job_id":"0c216d99-3f05-43dc-9d3d-5737e57f81a4","html_url":"https://github.com/tasooshi/pentesting-cookbook","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tasooshi%2Fpentesting-cookbook","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tasooshi%2Fpentesting-cookbook/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tasooshi%2Fpentesting-cookbook/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tasooshi%2Fpentesting-cookbook/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tasooshi","download_url":"https://codeload.github.com/tasooshi/pentesting-cookbook/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225737124,"owners_count":17516290,"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":["cheatsheet","pentesting","redteam","security","security-tools"],"created_at":"2024-08-04T17:01:46.372Z","updated_at":"2026-04-08T17:37:22.137Z","avatar_url":"https://github.com/tasooshi.png","language":"PowerShell","funding_links":[],"categories":["PowerShell","PowerShell (153)"],"sub_categories":[],"readme":"# pentesting-cookbook\n\n\u003e A set of recipes useful in pentesting and red teaming scenarios\n\nSnippets, code samples and hints used in penetration tests stored in a single repository so it can be quickly accessed and searched during the assessments.   \n\n## Structure\n\n- `bin` Handy utilities to be run locally\n- `snippets` All things useful to be run remotely, code snippets, examples etc\n- `Notes.*` All sort of helpers, lists and notes not necessarily related to specific service or stage\n- `Target.Host.OS.*` - Things that can be done once foothold is established\n- `Target.Host.Service.*` - Commands useful in enumeration and exploitation of particular service\n- `Target.Network.*` - Commands related to scanning and moving around networks\n- `Target.Recon.*` - Typical recon like DNS enumeration, OSINT etc.\n\n## Formatting rules\n\n* If there are more than three levels of hierarchy the file needs to be split.\n* Sources (scripts) are located in the `snippets` directory (referenced by `@`).\n* Conventions:\n    * `~` commands\n    * `@` file references\n    * `-` lists\n    * `--` comments (above the commented line)\n    * OS specific commands:\n        * `~$` (Linux, defaults to Bash)\n        * `~#` (Linux - root required)\n        * `~\u003e` (Windows)\n    * Shell specific commands:\n        * `~PS\u003e` (Powershell)\n* Variables:\n    * `VAR_ATTACKER_HOST`\n    * `VAR_ATTACKER_PORT`\n    * `VAR_TARGET_DOMAIN`\n    * `VAR_TARGET_HOST`\n    * `VAR_TARGET_PORT`\n    * `VAR_TARGET_CIDR`\n    * `VAR_TARGET_RANGE`\n    * `VAR_TARGET_FILE`\n    * `VAR_USERNAME`\n    * `VAR_PASSWORD`\n    * `VAR_NT_HASH`\n    * `VAR_LM_HASH` (blank LM hash: aad3b435b51404eeaad3b435b51404ee)\n    * `VAR_STRING`\n    * `VAR_INTEGER`\n    * `VAR_HEX`\n    * `VAR_WORDLIST`\n    * `VAR_WORDLIST_*` (`VAR_WORDLIST_USERNAME`, `VAR_WORDLIST_PASSWORD` etc)\n    * `VAR_*_HOST` (`VAR_FTP_HOST`, `VAR_ZOMBIE_HOST`, `VAR_PROXY_HOST` etc)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftasooshi%2Fpentesting-cookbook","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftasooshi%2Fpentesting-cookbook","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftasooshi%2Fpentesting-cookbook/lists"}