[{"content":"Intro Hello. In this walkthrough, I will be analyzing THM\u0026rsquo;s Mr. Phisher challenge.\nFor the challenge, we are handed a .zip file \u0026amp; .docm file to analyze with the goal to find the flag.\nWriteup When our lab machine boots up, we are greeted with the mrphisher folder \u0026amp; its contents:\nLet\u0026rsquo;s go open up the .docm and see whats up\u0026hellip; Macro within the document? Let\u0026rsquo;s note that down \u0026amp; continue our investigation. After clicking OK we get to see the document:\nWe are greeted with a meme. Clicking it doesn\u0026rsquo;t do anything, but it did mention the document has a macro! Let\u0026rsquo;s go check that out and see whats up with the macro. We will go to Tools -\u0026gt; Macros -\u0026gt; Edit Macros:\nAfter doing that, we are greeted with a tab that contains the catalog of macros \u0026amp; a text box which contains the macro program. Since the program told us there is a macro within the document, let\u0026rsquo;s go to the document \u0026amp; check what the program is!\nLooks like we have a visual basic script! Our next step is to figure out what this program does. We are pretty lucky for the program to be small \u0026amp; simple, so let\u0026rsquo;s first analyze it then continue on our path to the flag\u0026hellip;\nThe Program The macro script is simple \u0026amp; isn\u0026rsquo;t very scary; we can easily reference online documentation \u0026amp; figure out what each line does.\nDim is used to declare \u0026amp; reserve memory for a variable. We can see 2 variables declared:\nDim a() - Variable a is declared as a dynamic array. Since its data type isn\u0026rsquo;t given, it defaults to Variant Dim b As String - Variable b is declared \u0026amp; its data type is set to string. Right after the variables are declared, Variable a is initialized: a = Array(102, 109, 99, 100, 127, 100, ...) This variable is an array, a data structure with elements (anything within the parentheses are the array\u0026rsquo;s elements.)\nBelow the array initialization, we have a For loop:\nFor i = 0 To UBound(a) b = b \u0026amp; Chr(a(i) Xor i) Next This loop works by setting a control variable \u0026amp; having the loop iterate through every element in the array.\na(i) takes the element from the array at position i. a(i) Xor i) performs a bitwise XOR operation between the element and i. Chr() converts the value within the parentheses into its corresponding ASCII character. b = b \u0026amp; takes the existing string b, and then concatenates (joins) the value of Chr(a(i) Xor i) to the end of the b string.\nWhen looking at this program; we notice that the array values are XOR\u0026rsquo;d with their index i, which are then decoded into corresponding ASCII characters with the Chr() function, and then the value is concatenated to the end of the b string. This program builds something! Let\u0026rsquo;s try running it (of course, in a controlled environment! Never run suspicious programs outside controlled environments.).\nThere is lots of ways to see what this program builds:\nRewrite it in a different programming language Run the script on OnlineGDB (really good util for testing \u0026amp; running small programs.) Manually decode the whole thing (have fun doing this, if you do it for some reason.) I will go with OnlineGDB as it is the fastest. Note: We cannot run the script right away as we need to use a more strict form of VB to get it to run on OnlineGDB. After finally rewriting the program, once we run it we get the flag (blurred):\n","permalink":"https://nullmashina.com/posts/mrphishwriteup/mrphisherwriteup/","summary":"\u003ch1 id=\"intro\"\u003eIntro\u003c/h1\u003e\n\u003cp\u003eHello. In this walkthrough, I will be analyzing THM\u0026rsquo;s Mr. Phisher challenge.\u003c/p\u003e\n\u003cp\u003eFor the challenge, we are handed a \u003ccode\u003e.zip\u003c/code\u003e file \u0026amp; \u003ccode\u003e.docm\u003c/code\u003e file to analyze with the goal to find the flag.\u003c/p\u003e\n\u003ch1 id=\"writeup\"\u003eWriteup\u003c/h1\u003e\n\u003cp\u003eWhen our lab machine boots up, we are greeted with the \u003ccode\u003emrphisher\u003c/code\u003e folder \u0026amp; its contents:\u003cimg loading=\"lazy\" src=\"/images/mrphisherwriteup/img1.png\"\u003e\u003c/p\u003e\n\u003cp\u003eLet\u0026rsquo;s go open up the \u003ccode\u003e.docm\u003c/code\u003e and see whats up\u0026hellip;\n\u003cimg loading=\"lazy\" src=\"/images/mrphisherwriteup/img2.png\"\u003e\u003c/p\u003e\n\u003cp\u003eMacro within the document? Let\u0026rsquo;s note that down \u0026amp; continue our investigation. After clicking \u003ccode\u003eOK\u003c/code\u003e we get to see the document:\u003c/p\u003e","title":"Mr. Phisher - Writeup"},{"content":"Intro Hiya, I\u0026rsquo;m NullMashina. I\u0026rsquo;ve been studying cybersecurity for 1.5 years as of this post; mostly focusing on offensive security. I\u0026rsquo;m currently transitioning towards the blue team aspect of cybersecurity. This will be my blog where I will document all sorts of projects, writeups, updates, and whatnot.\nThings about me I got into cybersecurity because it fascinated me more than programming did when I was 11. My limiting factor was my inability to pay for subscriptions due to no debit card (and no money, lol). But after getting all the prerequisites for a subscription, I was instantly engaged and started spending lots of time studying cybersecurity.\nI started on THM and I spent about a year in THM, I\u0026rsquo;ve been going through the basics, and going into the pentesting roadmap which I\u0026rsquo;ve completed for the most part. I got pretty decent at what I was doing which I was happy witxh, and I was always striving to be better day by day.\nCurrently I\u0026rsquo;m rusty and not as good because of a burnout I\u0026rsquo;ve experienced starting late November in 2025 which lasted 1.5 to 2 months. I\u0026rsquo;ve been doing HTB content (3-4 modules on HTB\u0026rsquo;s CPTS roadmap, but I\u0026rsquo;ve started HTB\u0026rsquo;s CJCA roadmap instead to refresh \u0026amp; revise my knowledge on general topics). Next, I want to try blue team. I\u0026rsquo;ve never given it a shot, so this is a fun way to find out whether I love it or not. I might even change my trajectory in cybersecurity, who knows?\nMy plans for the future The rough sketch I have is to finish HTB\u0026rsquo;s CJCA path to get my revision in, then return to THM to do the blue team roadmap; likely getting SAL1 along the way. After that, I will look forward to getting CompTIA\u0026rsquo;s Security+ as it is an industry standard. Later on, I\u0026rsquo;ll probably go for a more advanced certification to challenge myself further.\nClosing up That\u0026rsquo;s about it for this post, I\u0026rsquo;ll be looking forward to getting a post up ASAP. Thank you for dividing some time to read this.\n","permalink":"https://nullmashina.com/posts/introduction/","summary":"\u003ch2 id=\"intro\"\u003eIntro\u003c/h2\u003e\n\u003cp\u003eHiya, I\u0026rsquo;m NullMashina. I\u0026rsquo;ve been studying cybersecurity for 1.5 years as of this post; mostly focusing on offensive security. I\u0026rsquo;m currently transitioning towards the blue team aspect of cybersecurity. This will be my blog where I will document all sorts of projects, writeups, updates, and whatnot.\u003c/p\u003e\n\u003ch2 id=\"things-about-me\"\u003eThings about me\u003c/h2\u003e\n\u003cp\u003eI got into cybersecurity because it fascinated me more than programming did when I was 11. My limiting factor was my inability to pay for subscriptions due to no debit card (and no money, lol). But after getting all the prerequisites for a subscription, I was instantly engaged and started spending lots of time studying cybersecurity.\u003c/p\u003e","title":"Hi, I'm NullMashina."},{"content":"Hi!! I\u0026rsquo;m NullMashina, a cybersecurity enthusiast based in Bosnia and Herzegovina. I started this blog as a way to document my progress, projects, as well as provide helpful writeups and whatnot.\nPlatforms Below are all the platforms I use and where you can find me:\nHackTheBox TryHackMe GitHub Youtube BlueSky X (Twitter) Discord - nullmashina ","permalink":"https://nullmashina.com/about/","summary":"\u003ch1 id=\"hi\"\u003eHi!!\u003c/h1\u003e\n\u003cp\u003eI\u0026rsquo;m NullMashina, a cybersecurity enthusiast based in Bosnia and Herzegovina. I started this blog as a way to document my progress, projects, as well as provide helpful writeups and whatnot.\u003c/p\u003e\n\u003ch1 id=\"platforms\"\u003ePlatforms\u003c/h1\u003e\n\u003cp\u003eBelow are all the platforms I use and where you can find me:\u003c/p\u003e\n\u003cul\u003e\n\u003cli\u003e\u003ca href=\"https://profile.hackthebox.com/profile/019d25fe-40e1-7062-8912-64bb7fe15e25\"\u003eHackTheBox\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://tryhackme.com/p/nullmashina\"\u003eTryHackMe\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://github.com/nullmashina\"\u003eGitHub\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"\"\u003eYoutube\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://bsky.app/profile/nullmashina.bsky.social\"\u003eBlueSky\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://x.com/nullmashina\"\u003eX (Twitter)\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003eDiscord - \u003ccode\u003enullmashina\u003c/code\u003e\u003c/li\u003e\n\u003c/ul\u003e","title":"About Me"}]