<?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>Php on Mike.Horn</title>
    <link>https://mikehorn-git.github.io/tags/php/</link>
    <description>Recent content in Php on Mike.Horn</description>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate>Sun, 29 Sep 2024 00:00:00 +0200</lastBuildDate>
    <atom:link href="https://mikehorn-git.github.io/tags/php/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>obscure</title>
      <link>https://mikehorn-git.github.io/writeups/htb/challenges/obscure/</link>
      <pubDate>Sun, 29 Sep 2024 00:00:00 +0200</pubDate>
      <guid>https://mikehorn-git.github.io/writeups/htb/challenges/obscure/</guid>
      <description>&lt;h1 id=&#34;introduction&#34;&gt;Introduction&lt;/h1&gt;
&lt;p&gt;We are provided with two files:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;A &lt;strong&gt;PCAP file&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;A &lt;strong&gt;PHP file&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;hr&gt;
&lt;h1 id=&#34;pcap-analysis&#34;&gt;PCAP Analysis&lt;/h1&gt;
&lt;p&gt;Start by analyzing the PCAP before fully deobfuscating &lt;code&gt;support.php&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Filter for &lt;strong&gt;HTTP POST&lt;/strong&gt; requests:&lt;/p&gt;
&lt;p&gt;&lt;img alt=&#34;POST&#34; loading=&#34;lazy&#34; src=&#34;./assets/2024-09-28T23:17:53,862253486+02:00.png&#34;&gt;&lt;/p&gt;
&lt;p&gt;Only &lt;strong&gt;4 POST requests&lt;/strong&gt; are present.&lt;/p&gt;
&lt;p&gt;Follow the HTTP streams to inspect the payloads. You will observe obfuscated strings such as:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;code&gt;0UlYyJHG87EJqEz66f8af44abea0QKxO/n6DAwXuGEoc5X9/H3HkMXv1Ih75Fx1NdSPRNDPUmHTy351039f4a7b5&lt;/code&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;&lt;img alt=&#34;STREAM&#34; loading=&#34;lazy&#34; src=&#34;./assets/2024-09-28T23:22:19,040121186+02:00.png&#34;&gt;&lt;/p&gt;
&lt;p&gt;These strings will be used as input for the PHP deobfuscation.&lt;/p&gt;
&lt;hr&gt;
&lt;h1 id=&#34;php-analysis&#34;&gt;PHP Analysis&lt;/h1&gt;
&lt;p&gt;The provided PHP script performs multiple layers of obfuscation:&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
