Showing posts with label Python. Show all posts
Phases of penetration testing activities include the following:
Planning – Customer goals are gathered and rules of engagement obtained.
Discovery – Perform scanning and enumeration to identify potential vulnerabilities, weak areas, and exploits.
Attack – Confirm potential vulnerabilities through exploitation and perform additional discovery upon new access.
Reporting – Document all found vulnerabilities and exploits, failed attempts, and company strengths and weaknesses.
scope
| assessment | Details |
|---|---|
| Internal & external Penetration Test | 10.10.266.244 |
Vulnerability Summary
| Finding | Severity |
|---|---|
| weak password | High |
| RCE | High |
| token impersonation | High |
THM : Alferd
السلام عليكم ورحمة الله وبركاته
اللهم علمنا ما ينفعنا وانفعنا بما علمتنا وزدنا علما
رابط المادة: http://iswy.co/e28dqd
رابط المادة: http://iswy.co/e28dqd
اللهم علمنا ما ينفعنا وانفعنا بما علمتنا وزدنا علما
رابط المادة: http://iswy.co/e28dqd
رابط المادة: http://iswy.co/e28dqd
اللهم علمنا ما ينفعنا وانفعنا بما علمتنا وزدنا علما
رابط المادة: http://iswy.co/e28dqd
رابط المادة: http://iswy.co/e28dqd
اللهم علمنا ما ينفعنا وانفعنا بما علمتنا وزدنا علما
Intro
In this lab, you will learn and explore the following topics:
- .NET basics
- Web application exploitation
- AV evasion
- Whitelist and container escapes
- Pivoting
- Operating with a C2 (Command and Control) Framework
- Post-Exploitation
- Situational Awareness
- Active Directory attacks
You will learn and exploit the following attacks and misconfigurations:
- Misconfigured subdomains
- Local file Inclusion
- Remote code execution
- Docker containers
- SUID binaries
- Password resets
- Client-side filters
- AppLocker
- Vulnerable DLLs
- Net-NTLMv2 / SMB
THM:HOLO -> Part 1

# Finding subdomains used by the target organization is an effective way to increase the attack surface and discover more vulnerabilities.
# The script will use a list of potential subdomains and prepends them to the domain name provided via a command-line argument.
# The script then tries to connect to the subdomains and assumes the ones that accept the connection exist.
import requests #The requests module allows you to send HTTP requests using Python.
import sys # The sys module provides functions and variables which are used to manipulate different parts of the Python Runtime Environment. It lets us access system-specific parameters and functions
#make a subdomain list and read it
sub_list = open("subdomains.txt").read()
subdoms = sub_list.splitlines() # The splitlines() method splits a string into a list. The splitting is done at line breaks.
# Create For loop to take the list of subdomains (subdomains) and run http request
for sub in subdoms:
sub_domains = f"http://{sub}.{sys.argv[1]}"
try:
requests.get(sub_domains) #make a GET Request
except requests.ConnectionError: # IF the Request Failed then Pass
pass
else:
print("Valid domain: ",sub_domains)

