0x0Lab Blog Just another damn blog

11Mar/100

Binger.php

Binger is a simple command line URL fetcher using Bing search. Binger uses DOM parsing to find the URL for the entered search string.

Binger requires php5 and php_curl to run.

Example:

$ ./binger.php "bing"
Results: 9
URL:

http://www.bing.com/

URL:

http://m.bing.com/

.
.
.
URL:

https://ssl.bing.com/listings/ListingCenter.aspx

URL:

http://bing.drury.edu/

$ ./binger.php
[binger v1.0 - by Cirrus [0x0lab.org]]
Usage: ./binger.php "search string" [num_of_result_pages]
Example: ./binger.php "ip:1.2.3.4" 2

As an added bonus Binger can be used with the following shell script to retrieve vhosts:
#!/bin/sh
for ipadd in `host $1|grep -v IPv6 | grep address|cut -d' ' -f4`; do
echo "IP address: $ipadd"
./binger.php "ip:$ipadd" 2 | grep http |cut -d'/' -f3 |sort |uniq
done

Example:
$ ./vhoster.sh slashdot.org
IP address: 216.34.181.45
books.slashdot.org
idle.slashdot.org
it.slashdot.org
politics.slashdot.org
slashdot.org
yro.slashdot.org

Download: Binger.php

Posted by cirrus

Tagged as: , Leave a comment
Comments (0) Trackbacks (0)

No comments yet.


Leave a comment

No trackbacks yet.