Tag: search

Java

Search Google Programmatically with Java

import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.net.HttpURLConnection; import java.net.URL;   public class Google_Search { private final String _url; private URL _url_obj; private HttpURLConnection _connection; private final String _userAgent; private int _responseCode; private StringBuffer _totalResults; private final int _quantity; private final int _start; private final String _searchTerm;   public Google_Search(String SearchTerm){ _url = "http://www.google.com"; _userAgent …

Information Gathering, Metasploit, Reconnaissance

Email harvesting with Metasploit

Email harvesting is the process of obtaining lists of email addresses using various methods. You can check on your own what emails, attackers are going to find about your domain using Metasploit’s module, Search Engine Domain Email Address Collector. This module uses Google, Bing and Yahoo to create a list of valid email addresses for …

C#

Recursively search directories using Visual C#

Source: void DirectorySearch(String str2find, String dir) { try { foreach (String file in Directory.GetFiles(dir, str2find)) Console.WriteLine(file);   foreach (string directory in Directory.GetDirectories(dir)) { foreach (string file in Directory.GetFiles(directory, str2find)) Console.WriteLine(file); DirectorySearch(str2find, directory); } } catch {} }void DirectorySearch(String str2find, String dir) { try { foreach (String file in Directory.GetFiles(dir, str2find)) Console.WriteLine(file); foreach (string directory in …

Penetration Testing, Tools, Vulnerabilities

Search Google’s cache to look for vulnerabilities with SiteDigger

SiteDigger searches Google’s cache to look for vulnerabilities, errors, configuration issues, proprietary information, and interesting security nuggets on web sites. > SiteDigger supports Proxy and TOR. 1. Choose search options from FoundStone Database or Google Hacking Database 2. Enter the domain 3. Hit Scan! System Requirements > Microsoft .NET Framework v3.5 Download SiteDigger from McAfee.