TGViewer
infosec infosec @it_secur · 62.1K subscribers
Post #1784 10.6K
👩‍💻 PowerShell Commands for Pentesters.

• В продолжении к вчерашней публикации поделюсь с Вами полезными командами, которые будут полезны пентестерам и специалистам в области информационной безопасности:

+ Locating files with sensitive information:
- Find potentially interesting files;
- Find credentials in Sysprep or Unattend files;
- Find configuration files containing “password” string;
- Find database credentials in configuration files;
- Locate web server configuration files;
+ Extracting credentials:
- Get stored passwords from Windows PasswordVault;
- Get stored passwords from Windows Credential Manager;
- Dump passwords from Google Chrome browser;
- Get stored Wi-Fi passwords from Wireless Profiles;
- Search for SNMP community string in registry;
- Search for string pattern in registry;
+ Privilege escalation:
- Search registry for auto-logon credentials;
- Check if AlwaysInstallElevated is enabled;
- Find unquoted service paths;
- Check for LSASS WDigest caching;
- Credentials in SYSVOL and Group Policy Preferences (GPP);
+ Network related commands:
- Set MAC address from command-line;
- Allow Remote Desktop connections;
- Host discovery using mass DNS reverse lookup;
- Port scan a host for interesting ports;
- Port scan a network for a single port (port-sweep);
- Create a guest SMB shared drive;
- Whitelist an IP address in Windows firewall;
+ Other useful commands:
- File-less download and execute;
- Get SID of the current user;
- Check if we are running with elevated (admin) privileges;
- Disable PowerShell command logging;
- List installed antivirus (AV) products.

#PowerShell
  • 👍 22
  • 🔥 6
  • 😨 2
  • 👎 1
More from @it_secur
  1. Sep 30, 2026• Ноябрь 1995 года. Билл Гейтс пришел на шоу Дэвида Леттермана и пытался объяснить людям,…
  2. Sep 30, 2026• PowerShell Notes for Professionals book - бесплатная книга для изучения PowerShell, кото…
  3. Sep 30, 2026• В даркнете случилась настоящая драма: администратор форума Prime Market опубликовал объя…
  4. Sep 30, 2026Как дать доступ к сети сотрудникам, не открыв дверь злоумышленнику По прогнозу Positive Te…
  5. Sep 29, 2026Post #5089
  6. Sep 29, 2026• У SANS есть очень крутая книга по реагированию на инциденты, которая распространяется со…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →