The objective was simple â see how susceptible the organization is from an external point of view and test the effectiveness of the security controls that are managed enterprise-wide. As such, asides, the company name, we were given âZEROâ information to perform an external black-box penetration Testing.
This black-box external penetration Testing Performing with aÂ by a client called (Hackme)Â
We kicked off with some Open Source Intelligence (OSINT) 101 :). There are quite a number of open source intelligence tools â to assist in gathering emails, subdomains, hosts, employee names, etc from different public sources like search engines and shodan. There is an exhaustive list of such awesome tools here .
Using quite a few open source intelligence tools, we obtained publicly available documents relating to the organization using Black-box Penetration Testing methods.
With Google dork to the rescue, we ran some basic search strings: âsite:*.hackme.com ext:xls OR ext:docx OR ext:pptxâ .
Also Read:Â Â Network Penetration Testing Checklist
Of course, our aim was not to tirelessly search for documents. Rather, our objective was to understand the organizationâs naming schema by examining the metadata of the documents which is found in the âproperties sectionâ of the document (most especially Microsoft Word, PowerPoint, and Excel). One can also use FOCA for this.
From this, I noticed that employees emails followed a particular naming convention â the first letter of the firstname + surname @ domain.com i.e. firstname.lastname@example.org.
Armed with this knowledge, we forked out from LinkedIn the list of all current employees of Hackme using the following google dork syntax:
site:linkedin.com -inurl:dir âat Hackmeâ âCurrentâ. A typical example is shown below using Google Inc as a reference company.
By hacking a script to automate the process, we copied out the first names, last names and the roles of the current employees of Hackme.
A tiring approach is to manually crawl through the google pages in search for these names and role or one could also use GoogleScraper:
GoogleScraper -m http âkeyword âsite:linkedin.com -inurl:dir âat Hackmeâ âCurrent’â ânum-pages-for-keyword 3 âoutput-filename output.json
Result:Â Black-box Penetration Testing
Again, I leave the possibilities to your imagination â but you can easily convert this to a .csv file using https://json-csv.com/ or any other converter that works for you.
Lire la suite sur https://gbhackers.com/external-black-box-penetration-testing/
vendredi, juillet 03, 2020