<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Offensive on Benny Simmonds</title>
    <link>https://www.bencode.io/tags/offensive/</link>
    <description>Recent content in Offensive on Benny Simmonds</description>
    <generator>Hugo -- 0.149.1</generator>
    <language>en-us</language>
    <lastBuildDate>Tue, 18 Sep 2018 18:51:10 +0000</lastBuildDate>
    <atom:link href="https://www.bencode.io/tags/offensive/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>CNO Attackers Strategy Essay</title>
      <link>https://www.bencode.io/posts/2018-09-18-cno-essay/</link>
      <pubDate>Tue, 18 Sep 2018 18:51:10 +0000</pubDate>
      <guid>https://www.bencode.io/posts/2018-09-18-cno-essay/</guid>
      <description>&lt;p&gt;A paper I prepared as part of the &lt;a href=&#34;https://www.unsw.adfa.edu.au/degree/postgraduate-coursework/master-cyber-security-8628&#34;&gt;UNSW Master of Cyber Security&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Alternately available as &lt;a href=&#34;https://github.com/bm4cs/junkyard/blob/master/latex/essays/201809-cybersec-cno-strategy/cybersec-cno-strategy-essay.tex&#34;&gt;LaTeX&lt;/a&gt; and &lt;a href=&#34;https://www.bencode.io/images/cybersec-cno-strategy-essay.pdf&#34;&gt;PDF&lt;/a&gt;.&lt;/p&gt;
&lt;h1 id=&#34;abstract&#34;&gt;Abstract&lt;/h1&gt;
&lt;p&gt;This paper discusses the motivations behind computer network exploitation, the general lifecycle of an attack operation, and the frictions and asymmetries that exist between both the attacker and the efender. One of the greatest challenges is fitting the ever-increasing and changing amount of information into a whole plan or framework to develop the right strategies to prevent such attacks. Armed with his knowledge seek out the creation of a structured general purpose framework for developing offensive strategies, the components described within it, its design philosophy, and how it can be used. It is eant to provide a concrete and structured approach to CNO strategy development.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Boot to Root</title>
      <link>https://www.bencode.io/posts/2018-08-10-cyber-cno-boot2root/</link>
      <pubDate>Fri, 10 Aug 2018 20:24:48 +0000</pubDate>
      <guid>https://www.bencode.io/posts/2018-08-10-cyber-cno-boot2root/</guid>
      <description>&lt;p&gt;Some fun I hacking on a &lt;em&gt;boot to root&lt;/em&gt; challenge I did with a mate recently.&lt;/p&gt;
&lt;h1 id=&#34;enumeration&#34;&gt;Enumeration&lt;/h1&gt;
&lt;h3 id=&#34;os-fingerprint&#34;&gt;OS Fingerprint&lt;/h3&gt;
&lt;pre&gt;&lt;code&gt;root@kali:~/boot2root# nmap -O 192.168.0.102

Starting Nmap 7.60 ( https://nmap.org ) at 2018-07-26 22:44 EDT
Nmap scan report for 192.168.0.102
Host is up (0.00022s latency).
Not shown: 986 closed ports
PORT      STATE SERVICE
21/tcp    open  ftp
80/tcp    open  http
135/tcp   open  msrpc
139/tcp   open  netbios-ssn
445/tcp   open  microsoft-ds
3389/tcp  open  ms-wbt-server
8009/tcp  open  ajp13
8080/tcp  open  http-proxy
49152/tcp open  unknown
49153/tcp open  unknown
49154/tcp open  unknown
49155/tcp open  unknown
49156/tcp open  unknown
49157/tcp open  unknown
MAC Address: 00:50:56:A3:B7:92 (VMware)
Device type: general purpose
Running: Microsoft Windows 2008|Vista|7
OS CPE: cpe:/o:microsoft:windows_server_2008:r2:sp1 cpe:/o:microsoft:windows_vista::sp1:home_premium     cpe:/o:microsoft:windows_7
OS details: Microsoft Windows Server 2008 R2 SP1, Microsoft Windows Vista Home Premium SP1, Windows 7, or Windows     Server 2008
Network Distance: 1 hop

OS detection performed. Please report any incorrect results at https://nmap.org/submit/ .
Nmap done: 1 IP address (1 host up) scanned in 66.26 seconds
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;A Windows box, running a bunch of services like &lt;code&gt;ftp&lt;/code&gt;, two &lt;code&gt;http&lt;/code&gt; servers, &lt;code&gt;smb&lt;/code&gt; and &lt;code&gt;ajp&lt;/code&gt;.&lt;/p&gt;</description>
    </item>
    <item>
      <title>CNO Presentation</title>
      <link>https://www.bencode.io/posts/2018-07-27-cyber-cno-presentation-containers/</link>
      <pubDate>Fri, 27 Jul 2018 08:47:01 +0000</pubDate>
      <guid>https://www.bencode.io/posts/2018-07-27-cyber-cno-presentation-containers/</guid>
      <description>&lt;h1 id=&#34;intro&#34;&gt;Intro&lt;/h1&gt;
&lt;p&gt;Containers, and specifically Docker are attracting a crazy amount of industry attention, particularly, I&amp;rsquo;m finding the software dev space.&lt;/p&gt;
&lt;h1 id=&#34;slide-1&#34;&gt;Slide 1&lt;/h1&gt;
&lt;p&gt;OK, just quickly what is Docker.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Docker is a computer program that performs operating-system-level virtualization also known as containerization. Docker is used to run software packages called &amp;ldquo;containers&amp;rdquo;.&lt;/p&gt;&lt;/blockquote&gt;
&lt;blockquote&gt;
&lt;p&gt;&amp;ldquo;Build once, configure once, and run anywhere.”&lt;/p&gt;&lt;/blockquote&gt;
&lt;h1 id=&#34;slide-2&#34;&gt;Slide 2&lt;/h1&gt;
&lt;p&gt;In a containerised world, the container becomes the standard unit of management and deployment. Containers provide a safe and consistent space for processes to run in. A container for example, could contain an Apache web server and all the dependencies it requires. Containers can in theory run all sorts of workloads&amp;hellip;webapps, database servers, desktop processes.&lt;/p&gt;</description>
    </item>
    <item>
      <title>CNO Day 4 Metasploitable</title>
      <link>https://www.bencode.io/posts/2018-07-26-cyber-cno-day4/</link>
      <pubDate>Thu, 26 Jul 2018 08:54:01 +0000</pubDate>
      <guid>https://www.bencode.io/posts/2018-07-26-cyber-cno-day4/</guid>
      <description>&lt;p&gt;Awesome tip #1: In metasploit console (&lt;code&gt;msfconsole&lt;/code&gt;), once you have loaded up an exploit, take &lt;code&gt;show payloads&lt;/code&gt; for a spin. This will show all payloads that are compatible with the given exploit. Awesome!&lt;/p&gt;
&lt;p&gt;Today we got the chance to work on &lt;a href=&#34;https://github.com/rapid7/metasploitable3&#34;&gt;Metasploitable 3&lt;/a&gt;, a Windows VM with a number of vunerability and flags (15ish of them).&lt;/p&gt;
&lt;p&gt;Its a great way to take this knowledge and apply it to an actual machine. I wont detail a full walkthrough, as there are already plenty, and I don&amp;rsquo;t want to ruin the learning experience.&lt;/p&gt;</description>
    </item>
    <item>
      <title>CNO Day 3 PrivEsc</title>
      <link>https://www.bencode.io/posts/2018-07-25-cyber-cno-day3/</link>
      <pubDate>Wed, 25 Jul 2018 08:54:01 +0000</pubDate>
      <guid>https://www.bencode.io/posts/2018-07-25-cyber-cno-day3/</guid>
      <description>&lt;p&gt;Privilege Escalation.&lt;/p&gt;
&lt;h1 id=&#34;basics&#34;&gt;Basics&lt;/h1&gt;
&lt;p&gt;On Windows, &lt;code&gt;SYSTEM&lt;/code&gt; is the highest privilege possible. Local Administrators can effectively get SYSTEM privileges.&lt;/p&gt;
&lt;p&gt;On Linux, &lt;code&gt;root&lt;/code&gt; (uid=0) is the highest privilege possible. Regular users can escalate to root privileges on demand (i.e. sudo).&lt;/p&gt;
&lt;h1 id=&#34;techniques&#34;&gt;Techniques&lt;/h1&gt;
&lt;ul&gt;
&lt;li&gt;Kernel exploits - leverage a flaw in the OS. Vunerabilty is determined by researching kernel version, patch levels. Tend to be patched quickly.&lt;/li&gt;
&lt;li&gt;High privileged programs - get a program running at a higher privilege to execute your code. Often things are unnessarily run with high privileges for convenience sake. For example, JBoss running on TomCat, running as root. Deploy a WAR to JBoss with an embedded reverse shell.&lt;/li&gt;
&lt;li&gt;Credential theft - leverage techniques to compromise a user with higher privileges. The primary method of lateral movement within organisations. Dumping of hashes, such as responder, SCF files on writab shares, UNC requests (when a user attempts to &lt;code&gt;\\server&lt;/code&gt; an auth request is sent and can be captured), network sniffing. Password reuse. &lt;a href=&#34;https://www.bleepingcomputer.com/news/security/you-can-steal-windows-login-credentials-via-google-chrome-and-scf-files/&#34;&gt;SCF to steal credentials&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Insecure configurations - abuse incorrectly services or programs. Service paths with whitespace is a great example e.g. &lt;em&gt;C:\anti-virus\virus definition\bin\update.exe&lt;/em&gt;, Windows path probing will attempt to find and run &lt;em&gt;C:\anti-virus\virus.exe&lt;/em&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;On Linux in the &lt;code&gt;/etc/shadow&lt;/code&gt; file, the prefix e.g. &lt;code&gt;$6&lt;/code&gt; indicates the hash function and salt, for example, this entry:&lt;/p&gt;</description>
    </item>
    <item>
      <title>CNO Day 2 Exploitation</title>
      <link>https://www.bencode.io/posts/2018-07-24-cyber-cno-day2/</link>
      <pubDate>Tue, 24 Jul 2018 08:47:01 +0000</pubDate>
      <guid>https://www.bencode.io/posts/2018-07-24-cyber-cno-day2/</guid>
      <description>&lt;h1 id=&#34;exploitation&#34;&gt;Exploitation&lt;/h1&gt;
&lt;blockquote&gt;
&lt;p&gt;An exploit is some software which leverages a vunerability to perform an  action.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Important to differientiate the &lt;em&gt;payload&lt;/em&gt; from the &lt;em&gt;exploit&lt;/em&gt;.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;A payload is something executed via an exploit.&lt;/p&gt;&lt;/blockquote&gt;
&lt;h1 id=&#34;finding-exploits&#34;&gt;Finding Exploits&lt;/h1&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;https://www.exploit-db.com&#34;&gt;Exploit DB&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Google&lt;/li&gt;
&lt;li&gt;SearchSploit - a local mirror of exploit-db; useful for local cached copies.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;For example &lt;em&gt;CVE-2008-4250&lt;/em&gt;, maybe assigned different vendor specific labels. In this case &lt;em&gt;MSE08-067&lt;/em&gt;, by searching Google and heading to the Microsoft security bullitin:&lt;/p&gt;</description>
    </item>
    <item>
      <title>CNO Day 1 Enumeration</title>
      <link>https://www.bencode.io/posts/2018-07-23-cyber-cno-day1/</link>
      <pubDate>Mon, 23 Jul 2018 09:26:01 +0000</pubDate>
      <guid>https://www.bencode.io/posts/2018-07-23-cyber-cno-day1/</guid>
      <description>&lt;p&gt;Covers basics starting with enumeration.&lt;/p&gt;
&lt;p&gt;There is a process to exposing vunerabilities. Not a linear process. Imposter syndrome is huge in this field, due to the complexity of the field, and how many domains it covers.&lt;/p&gt;
&lt;p&gt;The anatomy of a hack (EEE); Enumeration, Exploitation, Escalation&lt;/p&gt;
&lt;p&gt;There are multiple ways to do one thing, for example to figure out if  the &lt;code&gt;sshd&lt;/code&gt; daemon is running you could:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Check if port 22 is listening &lt;code&gt;netstat -tlp&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Check if the sshd process is running&lt;/li&gt;
&lt;li&gt;Try to ssh connect to the daemon&lt;/li&gt;
&lt;li&gt;List the running services through systemd&lt;/li&gt;
&lt;/ul&gt;
&lt;h1 id=&#34;tools&#34;&gt;Tools&lt;/h1&gt;
&lt;p&gt;Tools to grok:&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
