Saturday, September 18, 2010

Hitchhiker's Guide to Hiding on the Internet for MacFolks

Recently updated my Vidalia App and I got in to some issues with polipo. I redo the entire installation and proceed as follows:


Vidalia 0.2.10
Tor 0.2.1.25

Download Vidalia directly from the website: http://www.torproject.org/vidalia/

Install MacPorts
sudo port install tor
sudo port install polipo
sudo port load polipo


Polipo Configuration Guide:

polipo does not come with a working config you have to make your own or just copy and customize the sample configs found on /opt/local/etc/polipo/ here's how i did mine.

sudo touch /opt/local/etc/polipo/config

Open an editor program (vi/etc) and put the following config

socksParentProxy = "localhost:9050"
socksProxyType = socks5

Port 9050 is the tor deamon.

to verify your polipo config

http://localhost:8123

Vidalia Settings

Stop Start the Vidalia Daemon (Gui)

and point your proxy to

IP: localhost
Port: 8123

enjoy secure surfing via tor.

to check your tor presence go to the following link.

https://check.torproject.org

Wednesday, July 21, 2010

DVD on Mac OS X stopped working

Mac OS X weird Logs:

7/21/10 8:27:37 PM kernel SCSITaskUserClient - Invalid arguments: scatterGatherEntries = 1, requestedTransferCount = 0, transfer direction is 0
7/21/10 8:27:38 PM kernel SCSITaskUserClient - Invalid arguments: scatterGatherEntries = 1, requestedTransferCount = 0, transfer direction is 0
7/21/10 8:27:39 PM kernel SCSITaskUserClient - Invalid arguments: scatterGatherEntries = 1, requestedTransferCount = 0, transfer direction is 0
7/21/10 8:27:40 PM kernel SCSITaskUserClient - Invalid arguments: scatterGatherEntries = 1, requestedTransferCount = 0, transfer direction is 0
7/21/10 8:27:41 PM kernel SCSITaskUserClient - Invalid arguments: scatterGatherEntries = 1, requestedTransferCount = 0, transfer direction is 0

I tried to burn with toaster but no dice. I'm uninstalling the toaster and re-trying it.

**UPDATE**

After uninstalling Toaster 10 on my Mac. My CDROM work flawlessly. it seems that this issue started after I applied a patch on my Mac. considering the weight of burning using toaster and having bugs fixed on Mac OS X, I would choose an OS patch than a 3rd party burner. I can always burn through (AppleKey + Shift + U) Disk Utilities.

Wednesday, March 17, 2010

Finding out information on a ton of IP's

I made the following script to make life simple.. (atleast for me)

#!/usr/bin/perl
open (ipfile, 'ip.csv');
while () {
chomp;
$nrange = '| /usr/bin/egrep -i "NetRange|Country|OrgName|NET"';
print "$_\n";
my $ips = "$_";
my $output = qx/whois $ips $nrange/;
print $output;

sample: ip.csv
192.168.1.0

:) yey no more manual whois crap.

Saturday, February 27, 2010

Attack_Simulation_and_Threat_Modeling

Attack Simulation and Threat Modeling.

I got this off google's html cache. since the main site is bogged down.(too many users downloading this doc) It's a pretty good read.

enjoy.

RapidShare Link:

http://rapidshare.com/files/370085717/Attack_Simulation_and_Threat_Modeling.zip.html
MD5: C1A1E731E1FBF67516D20242355D0218

Friday, February 26, 2010

Proxychains 3.1 on OpenBSD 4.6

Proxychains - Great tool for tor'ing.

Patch introduced on the misc-openbsd instructed me on getting the freebsd version of the patch.

FreeBSD patch Link:
http://www.freebsd.org/cgi/cvsweb.cgi/~checkout~/ports/net/proxychains/files/patch-proxychains-libproxychains.c?rev=1.1;content-type=text%2Fplain

I tried to build it but no dice. After messing around with it. I got a working patch: please see below.

--- proxychains/libproxychains.c.orig Wed Mar 15 18:16:59 2006
+++ proxychains/libproxychains.c Sun Dec 10 01:16:37 2006
@@ -160,7 +160,7 @@

if(!(file=fopen("./proxychains.conf","r")))
if(!(file=fopen(buff,"r")))
- if(!(file=fopen("/etc/proxychains.conf","r")))
+ if(!(file=fopen("/etc/proxychains.conf","r")))
{
perror("Can't locate proxychains.conf");
exit(1);
@@ -290,8 +290,8 @@

int getnameinfo (const struct sockaddr * sa,
socklen_t salen, char * host,
- socklen_t hostlen, char * serv,
- socklen_t servlen, unsigned int flags)
+ size_t hostlen, char * serv,
+ size_t servlen, int flags)
{
int ret = 0;
if(!init_l)


Apply patch and build it.

./configure --prefix=/usr/local <-- prefix location needs to be specified.
gmake
sudo gmake install

patch is tested on openbsd 4.6(stable) and proxychains 3.1