<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" >

<channel><title><![CDATA[THE DFIR BLOG - Offensive Security]]></title><link><![CDATA[https://www.thedigitalforensics.com/offensive-security]]></link><description><![CDATA[Offensive Security]]></description><pubDate>Fri, 31 Jul 2026 21:30:54 -0700</pubDate><generator>Weebly</generator><item><title><![CDATA[Bookmarks]]></title><link><![CDATA[https://www.thedigitalforensics.com/offensive-security/bookmarks]]></link><comments><![CDATA[https://www.thedigitalforensics.com/offensive-security/bookmarks#comments]]></comments><pubDate>Sat, 12 Feb 2022 16:13:33 GMT</pubDate><category><![CDATA[Uncategorized]]></category><guid isPermaLink="false">https://www.thedigitalforensics.com/offensive-security/bookmarks</guid><description><![CDATA[Spawning a TTY:&nbsp;&#8203;https://netsec.ws/?p=337Privilege Escalation&#8203;https://github.com/rebootuser/LinEnum/blob/master/LinEnum.sh [...] ]]></description><content:encoded><![CDATA[<div class="paragraph">Spawning a TTY:&nbsp;&#8203;https://netsec.ws/?p=337<br /><br />Privilege Escalation<br />&#8203;https://github.com/rebootuser/LinEnum/blob/master/LinEnum.sh<br /></div>]]></content:encoded></item><item><title><![CDATA[Directory Enumeration]]></title><link><![CDATA[https://www.thedigitalforensics.com/offensive-security/directory-enumeration]]></link><comments><![CDATA[https://www.thedigitalforensics.com/offensive-security/directory-enumeration#comments]]></comments><pubDate>Thu, 10 Feb 2022 04:19:53 GMT</pubDate><category><![CDATA[Uncategorized]]></category><guid isPermaLink="false">https://www.thedigitalforensics.com/offensive-security/directory-enumeration</guid><description><![CDATA[gobuster dir -u &lt;IP Address&gt; -w &lt;Wordlist&gt; -e -s "200,301,302,401" -t 100 [...] ]]></description><content:encoded><![CDATA[<div class="paragraph">gobuster dir -u &lt;IP Address&gt; -w &lt;Wordlist&gt; -e -s "200,301,302,401" -t 100<br></div>]]></content:encoded></item><item><title><![CDATA[Privilege Escalation Methods]]></title><link><![CDATA[https://www.thedigitalforensics.com/offensive-security/privilege-escalation-methods]]></link><comments><![CDATA[https://www.thedigitalforensics.com/offensive-security/privilege-escalation-methods#comments]]></comments><pubDate>Thu, 10 Feb 2022 03:59:31 GMT</pubDate><category><![CDATA[Uncategorized]]></category><guid isPermaLink="false">https://www.thedigitalforensics.com/offensive-security/privilege-escalation-methods</guid><description><![CDATA[Python 3.8&#8203;import osos.setuid(0)os.system("/bin/bash") [...] ]]></description><content:encoded><![CDATA[<div class="paragraph">Python 3.8<br /><span><br />&#8203;import os</span><br /><span>os.setuid(0)</span><br /><span>os.system("/bin/bash")</span></div>]]></content:encoded></item><item><title><![CDATA[Passive Reconnaissance]]></title><link><![CDATA[https://www.thedigitalforensics.com/offensive-security/passive-reconnaissance]]></link><comments><![CDATA[https://www.thedigitalforensics.com/offensive-security/passive-reconnaissance#comments]]></comments><pubDate>Mon, 10 Jan 2022 01:19:22 GMT</pubDate><category><![CDATA[Uncategorized]]></category><guid isPermaLink="false">https://www.thedigitalforensics.com/offensive-security/passive-reconnaissance</guid><description><![CDATA[&ldquo;If you know the enemy and know yourself, your victory will not stand in doubt.&rdquo;-&nbsp;Art of War, Sun Tzu taught. Threat Intelligence is the key for Blue Team while Reconnaissance is the key for the success of the Red Team.Tools for getting the publicly available information of the Target. This will not trigger/alert the target.Common tools:- whois- nslookup#whois: Most of the Unix/Linux will have the whois client by default. whois search will give you information about the registra [...] ]]></description><content:encoded><![CDATA[<div class="paragraph">&ldquo;If you know the enemy and know yourself, your victory will not stand in doubt.&rdquo;<br />-&nbsp;Art of War, Sun Tzu taught. Threat Intelligence is the key for Blue Team while Reconnaissance is the key for the success of the Red Team.<br /><br />Tools for getting the publicly available information of the Target. This will not trigger/alert the target.<br />Common tools:<br />- whois<br />- nslookup<br /><br />#whois: Most of the Unix/Linux will have the whois client by default. whois search will give you information about the registrar, nameservers etc.&nbsp;<br /><br />commmand: whois &lt;domainname&gt;<br /><br />#nslookup<br />command: nslookup -type=&lt;&gt; &lt;domainname&gt; 1.1.1.1<br /><br /><strong>Type</strong><br />a or A - ipv4<br />aaaa or AAAA -ipv6<br />mx or MX for mailserver<br />txt or TXT for txt file&nbsp;<br /><br /><strong>server</strong><br />1.1.1.1 - cloudflare<br />8.8.8.8 - google<br />&#8203;<br /><br /></div>]]></content:encoded></item><item><title><![CDATA[Network mapper (nmap)]]></title><link><![CDATA[https://www.thedigitalforensics.com/offensive-security/network-mapper-nmap]]></link><comments><![CDATA[https://www.thedigitalforensics.com/offensive-security/network-mapper-nmap#comments]]></comments><pubDate>Sun, 09 Jan 2022 08:23:12 GMT</pubDate><category><![CDATA[Uncategorized]]></category><guid isPermaLink="false">https://www.thedigitalforensics.com/offensive-security/network-mapper-nmap</guid><description><![CDATA[Nmap is an amazing tools used by Red and Blue teamer for offensive and defensive purposes.To run the Nmap command you'll need a target machine or a list of target machines.&nbsp;nmap -iL list_of_hosts.txt.&#8203;- Used at the recon stage.- &#8203;Most command command is nmap -sV -sC &lt;target ip-address&gt;* this command is too noisy.&nbsp;nmap -Pn &lt;target ip-address&gt;&#8203;nmap -sV -sC -p 22,80 -T4 10.129.189.116Script:&#8203;ports=$(nmap -p- --min-rate=1000 -Pn -T4 &lt;IP ADDRESS&gt; |  [...] ]]></description><content:encoded><![CDATA[<div class="paragraph">Nmap is an amazing tools used by Red and Blue teamer for offensive and defensive purposes.To run the Nmap command you'll need a target machine or a list of target machines.&nbsp;<br /><br /><br /><ul><li><strong><font color="#8d2424">nmap -iL list_of_hosts.txt.</font></strong></li></ul><br /><br />&#8203;<br />- Used at the recon stage.<br />- &#8203;Most command command is <font color="#da4444">nmap -sV -sC &lt;target ip-address&gt;</font><br />* this command is too noisy.&nbsp;<ul><li><strong><font color="#8d2424">nmap -Pn &lt;target ip-address&gt;</font></strong></li><li><strong><font color="#8d2424">&#8203;nmap -sV -sC -p 22,80 -T4 10.129.189.116</font></strong></li></ul><strong><br /></strong>Script:<br />&#8203;<br><span>ports</span><span>=</span><span>$(nmap -p- --min-rate=1000 -Pn -T4 &lt;IP ADDRESS&gt; | grep '^[0-9]' | cut -d '/' -f 1</span><span>| tr '\n' ',' | sed s/,</span><span>$/</span><span>/)</span><br /><span>nmap&nbsp;</span><span>-p</span><span>$ports</span><span>-Pn</span><span>-sC</span><span>-sV &lt;IP ADDRESS&gt;</span><br /></div>]]></content:encoded></item></channel></rss>