Saturday, October 30, 2010

Simple web crawler written in Perl

http://www.linuxjournal.com/files/linuxjournal.com/linuxjournal/articles/022/2200/2200l1.html

Tuesday, October 26, 2010

Cracking Windows XP Passwords

http://en.wikibooks.org/wiki/Reverse_Engineering/Cracking_Windows_XP_Passwords


The Windows XP passwords are hashed using LM hash and/or NTLM hash. The hashes are stored in c:\windows\system32\config\SAM. The SAM file is encrypted using c:\windows\system32\config\system and is locked when Windows is running. To get the passwords, you need to shutdown Windows, decrypt the SAM file, and then crack the hashes. You can also obtain the hashes using other software that does not require you to turn your computer off. If everything goes well, you'll have the passwords in 15 minutes.
The SKCLONE tool will allow extracting password hashes in PWDUMP format from the live SAM and importing them to other live systems including 64 bit systems, making it a useful tool for migrating local user accounts to 64 bit windows. It does however require you to run the software as the SYSTEM account, since it will try to reach HKLM\SECURITY\SAM in the registry.

Friday, October 22, 2010

Wednesday, October 20, 2010

Private Address Space RFC 1918

3. Private Address Space

   The Internet Assigned Numbers Authority (IANA) has reserved the
   following three blocks of the IP address space for private internets:

     10.0.0.0        -   10.255.255.255  (10/8 prefix)
     172.16.0.0      -   172.31.255.255  (172.16/12 prefix)
     192.168.0.0     -   192.168.255.255 (192.168/16 prefix)

   We will refer to the first block as "24-bit block", the second as
   "20-bit block", and to the third as "16-bit" block. Note that (in
   pre-CIDR notation) the first block is nothing but a single class A
   network number, while the second block is a set of 16 contiguous
   class B network numbers, and third block is a set of 256 contiguous
   class C network numbers.

Tuesday, October 19, 2010

Woes of Apache 1.3 in the 21st Century and mod_auth_vas (fronm Quest)

First stubling block I hit is this:


$ /usr/local/apache/bin/apxs -q list
apxs:Error: Sorry, no DSO support for Apache available
apxs:Error: under your platform. Make sure the Apache
apxs:Error: module mod_so is compiled into your server
apxs:Error: binary `/usr/local/apache/bin/httpd'.

This is the first google result which seems to answer my question

 http://www.gjt.org/mlist/gnujsp/msg02831.html

and sure enough there are these lines in apache/src/Configuration file ...



################################################################
# Dynamic Shared Object (DSO) support
#
# There is experimental support for compiling the Apache core and
# the Apache modules into dynamic shared object (DSO) files for
# maximum runtime flexibility.
#
# The Configure script currently has only limited built-in
# knowledge on how to compile these DSO files because this is
# heavily platform-dependent. The current state of supported and
# explicitly unsupported platforms can be found in the file
# "htdocs/manual/dso.html", under "Supported Platforms".
#
# For other platforms where you want to use the DSO mechanism you
# first have to make sure it supports the pragmatic dlopen()
# system call and then you have to provide the appropriate
# compiler and linker flags below to create the DSO files on your
# particular platform.
#
# The placement of the Apache core into a DSO file is triggered
# by the SHARED_CORE rule below while support for building
# individual Apache Modules as DSO files and loading them under
# runtime without recompilation is triggered by `SharedModule'
# commands. To be able to use the latter one first enable the
# module mod_so (see corresponding `AddModule' command below).
# Then enable the DSO feature for particular modules individually
# by replacing their `AddModule' command with `SharedModule' and
# change the filename extension from `.o' to `.so'.
#
# Sometimes the DSO files need to be linked against other shared
# libraries to explicitly resolve symbols from them when the
# httpd program not already contains references to them. For
# instance when buidling mod_auth_db as a DSO you need to link
# the DSO against the libdb explicity because the Apache kernel
# has no references for this library. But the problem is that
# this "chaining" is not supported on all platforms. Although one
# usually can link a DSO against another DSO without linker
# complains the linkage is not really done on these platforms.
# So, when you receive "unresolved symbol" errors under runtime
# when using the LoadModule directive for a particular module try
# to enable the SHARED_CHAIN rule below.

#CFLAGS_SHLIB=
#LD_SHLIB=
#LDFLAGS_SHLIB=
#LDFLAGS_SHLIB_EXPORT=

Rule SHARED_CORE=default
Rule SHARED_CHAIN=default

Friday, October 15, 2010

Using snmpwalk to list installed RPMs Redhat

red@cricket:~$ snmpwalk -m THING `hostname` secretstring > snmpwalk.out
red@cricket:~$ grep xman snmpwalk.out
25.6.3.1.2.93 = "net-snmp-xman-extensions-1.0-7.el5"
25.6.3.1.2.357 = "xman-bones-2.2-2.el4"

Thursday, October 14, 2010

Sunday, October 10, 2010

Never run iptables -A OUTPUT -j DROP

Never run this on your system :)

iptables -A OUTPUT -j DROP

I saw this on http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch14_:_Linux_Firewalls_Using_iptables

bad advice ;)

iptables's web site http://www.netfilter.org/

http://www.netfilter.org/

Common use of "map" in Perl my @titles = map { chomp; $_ } ( );

# set name CHILDREN KIDS AUDIO BOOKS MP3 3 DVD SET
my @titles = map { chomp; $_ } ( <DATA> );

...
__DATA__
Peter Pan
Alice's Adventures in Wonderland
The Adventures of Pinocchio
Dorothy and the Wizard of Oz
The Enchanted Castle
The Burgess Animal book for Children
Little Wizard Stories of Oz
The Golden Goose Book
Five Children and It
English Fairy Tales
The Life and Adventures of Santa Claus
Anne of Green Gables
The Aesop for Children
Squirrels and other Fur-Bearers
The True Story of the 3 Little Pigs
The Secret Garden
Anne of Avonlea
American India Fairy Tales
A Little Princess
The Real Mother Goose

Thursday, October 07, 2010

What's up with amenworld.com and why are they trying to hack me?

Thu Oct 7 19:30:01 PDT 2010
Someone at wpc0287.amenworld.com has tried at least 5 times to hack into my system. Latest attempt at Thu Oct  7 15:38:28 PDT 2010. 
 

Wednesday, October 06, 2010

guest access and E3000 linksys update

Here's is my chat with linksys support ... chat spoiler is SAD FACE no resolution other than setting router back to factory defaults:

This is the session transcript you requested for session # XXXXXXXX with Apu Nahasapeemapetilon (XXXXX) on Wednesday, October X, 2010 0:02 ?m


Apu Nahasapeemapetilon (XXXXX) has joined this session.
from Red Cricket to All Participants:
hi
from Apu Nahasapeemapetilon (XXXXX) to All Participants:
Welcome to Live Chat Cisco Support for Linksys Products. My name is Apu Nahasapeemapetilon ( XXXXX )
from Apu Nahasapeemapetilon (XXXXX) to All Participants:
Hi, how are you doing today?
from Red Cricket to All Participants:
ok
from Red Cricket to All Participants:
can you help me with an isssue I have
from Red Cricket to All Participants:
?
from Apu Nahasapeemapetilon (XXXXX) to All Participants:
Could you please brief me what is the problem you are experiencing with your Linksys product?
from Red Cricket to All Participants:
well I am not able to view or change the guest connection password on my e3000 router
from Apu Nahasapeemapetilon (XXXXX) to All Participants:
Have you installed the cisco connect software using the setup disc?
from Red Cricket to All Participants:
yes
from Apu Nahasapeemapetilon (XXXXX) to All Participants:
Let me confirm that you are trying to disable the Guest network ?
from Red Cricket to All Participants:
?
from Red Cricket to All Participants:
what?
from Red Cricket to All Participants:
why would I do that?
from Red Cricket to All Participants:
sounds like you are going through the automated trouble shooting thing
from Red Cricket to All Participants:
I tried that
from Red Cricket to All Participants:
it sucks
from Apu Nahasapeemapetilon (XXXXX) to All Participants:
I am not sure, what you are trying to do ?
from Apu Nahasapeemapetilon (XXXXX) to All Participants:
So, that I can assist you properly.
from Red Cricket to All Participants:
I am trying to change the password to the guest connection
from Red Cricket to All Participants:
not disable it
from Apu Nahasapeemapetilon (XXXXX) to All Participants:
Okay... I got it.
from Apu Nahasapeemapetilon (XXXXX) to All Participants:
Could you please open Cisco Connect Application listed under All Programme list.
from Red Cricket to All Participants:
hold on
from Red Cricket to All Participants:
it will take a minute or two to start my windows system where I installed that
from Red Cricket to All Participants:
almost there
from Red Cricket to All Participants:
ok it is open
from Apu Nahasapeemapetilon (XXXXX) to All Participants:
Could you please click on Router Settings
from Red Cricket to All Participants:
I do not have that link on the cisco connect application
from Red Cricket to All Participants:
this is what I see
from Red Cricket to All Participants:
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiL9jnNiJuPDPj3RFAwh-GItqRUcscva1Rmew9iBYJ2CKU17PiVyp_cBxNQpoE6kJTxhuGJZDrwFS-Tm3mllUmfd21WULq23sjTrxfX4r_zWZUsoe2sLTDakvOQzIa0eu2JigcSJsod7r8/s1600/ciscoconnect.PNG
from Red Cricket to All Participants:
The router adavanced settings have been changed
from Apu Nahasapeemapetilon (XXXXX) to All Participants:
Click on close, and make a note of Router Name and Password, its the main network name and password to connect any wireless devices.
from Red Cricket to All Participants:
you mean the username and password?
from Apu Nahasapeemapetilon (XXXXX) to All Participants:
That's correct.
from Red Cricket to All Participants:
ok I closed the app.
from Apu Nahasapeemapetilon (XXXXX) to All Participants:
Now, come back to the main of Cisco Connect application and click on Guest Access.
from Red Cricket to All Participants:
I should start cisco conect again? i just closed that right?
from Apu Nahasapeemapetilon (XXXXX) to All Participants:
Sure, please start it again.
from Red Cricket to All Participants:
ok already done
from Red Cricket to All Participants:
there is no Guest Access to click on.
from Red Cricket to All Participants:
the same thing happened
from Red Cricket to All Participants:
cisco connect says :The router advanced setting have been changed"
from Red Cricket to All Participants:
did you look at the link I posted?
from Red Cricket to All Participants:
that's what I see when I start isco con.
from Red Cricket to All Participants:
cisco conn
from Apu Nahasapeemapetilon (XXXXX) to All Participants:
That's fine. just continue.
from Red Cricket to All Participants:
how?
from Red Cricket to All Participants:
hello
from Red Cricket to All Participants:
hello
from Apu Nahasapeemapetilon (XXXXX) to All Participants:
Sorry for the delay...
from Apu Nahasapeemapetilon (XXXXX) to All Participants:
Please post the image you could see ?
from Red Cricket to All Participants:
I did already but will do so again
from Red Cricket to All Participants:
please look at it this time
from Red Cricket to All Participants:
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiL9jnNiJuPDPj3RFAwh-GItqRUcscva1Rmew9iBYJ2CKU17PiVyp_cBxNQpoE6kJTxhuGJZDrwFS-Tm3mllUmfd21WULq23sjTrxfX4r_zWZUsoe2sLTDakvOQzIa0eu2JigcSJsod7r8/s1600/ciscoconnect.PNG
from Apu Nahasapeemapetilon (XXXXX) to All Participants:
Do you remember the router name and password for the router?
from Red Cricket to All Participants:
yes
from Apu Nahasapeemapetilon (XXXXX) to All Participants:
Please clck on Advanced Settings.
from Red Cricket to All Participants:
you mean click on "Open advance settings"?
from Red Cricket to All Participants:
sure will do
from Apu Nahasapeemapetilon (XXXXX) to All Participants:
Yes...
from Apu Nahasapeemapetilon (XXXXX) to All Participants:
It will prompt you for User Name and Password ?
from Red Cricket to All Participants:
There is a message and a OK and Cancel buttons
from Apu Nahasapeemapetilon (XXXXX) to All Participants:
What's the message is ?
from Red Cricket to All Participants:
Advanced settings this is for expert use only. use these setting if you are ... Changing the advance settings can prevent you from using Cisco Connect
from Red Cricket to All Participants:
If you want to contine click ok
from Red Cricket to All Participants:
I did
from Apu Nahasapeemapetilon (XXXXX) to All Participants:
Please say, OK we would be on the setup page ?
from Red Cricket to All Participants:
yes we are on the setup page
from Apu Nahasapeemapetilon (XXXXX) to All Participants:
Great..
from Apu Nahasapeemapetilon (XXXXX) to All Participants:
Please click on Wireless tab and select Manual.
from Red Cricket to All Participants:
ok done
from Apu Nahasapeemapetilon (XXXXX) to All Participants:
Click on Wireless Security >> select Security Mode as WPA2 Personal
from Red Cricket to All Participants:
for 5GHz or 2.4Ghz
from Apu Nahasapeemapetilon (XXXXX) to All Participants:
For both the networks.
from Red Cricket to All Participants:
Here's what I see on that tab
from Red Cricket to All Participants:
5 GHz Wireless Sec. >> Sec. Mode WPA2/WPA Mixed mode
from Red Cricket to All Participants:
passphrase mypass
from Red Cricket to All Participants:
2.4 GHz Wireless Sec.
from Red Cricket to All Participants:
sec mode wpa2/'wpa Mixied mode
from Red Cricket to All Participants:
passphrase mypass
from Apu Nahasapeemapetilon (XXXXX) to All Participants:
Change the password of your choice, make it sure password should be same for both the networks and Save the Settings.
from Apu Nahasapeemapetilon (XXXXX) to All Participants:
Before that select the Security mode as WPA2 Persoanal.
from Red Cricket to All Participants:
I don't understand
from Red Cricket to All Participants:
which one is the guest connection?
from Apu Nahasapeemapetilon (XXXXX) to All Participants:
Okay.. wait...
from Apu Nahasapeemapetilon (XXXXX) to All Participants:
I will explain you.
from Red Cricket to All Participants:
what's the differnce between 5Ghz and 2.4GHz?
from Apu Nahasapeemapetilon (XXXXX) to All Participants:
Gusest network is functionality of Cisco Connect software.
from Red Cricket to All Participants:
ok
from Red Cricket to All Participants:
I want to change the password on my guest network
from Apu Nahasapeemapetilon (XXXXX) to All Participants:
Its a virtual network created with the help of Cisco Connect Software, it can changed with the help of Cisco Connect software only.
.
from Apu Nahasapeemapetilon (XXXXX) to All Participants:
As the router's settings have been changed using the advanced settings of the router.
from Red Cricket to All Participants:
ok
from Apu Nahasapeemapetilon (XXXXX) to All Participants:
That's why we are not able to access or use Cisco Connect applicaton.
from Red Cricket to All Participants:
I know
from Red Cricket to All Participants:
I am asking for help in fixing that
from Red Cricket to All Participants:
looks like I locked the keys in the car
from Apu Nahasapeemapetilon (XXXXX) to All Participants:
Now, to diasble or change the guest password we need to make some changes on the router and then install the Cisco Connect software again.
from Red Cricket to All Participants:
ok
from Apu Nahasapeemapetilon (XXXXX) to All Participants:
So, please go ahead making the changes on the setup page and then we will install the cisco connect application.
from Apu Nahasapeemapetilon (XXXXX) to All Participants:
Now, on the Wireless Security tab, you have two networks 2.4 and 5 Ghz networtk available.
from Red Cricket to All Participants:
yes
from Apu Nahasapeemapetilon (XXXXX) to All Participants:
For both the network please select the security mode as WPA2 Personal and please wait dont save the settings.
from Red Cricket to All Participants:
does it have to WPA2 or will WPA2/WPA Mixed mode work?
from Apu Nahasapeemapetilon (XXXXX) to All Participants:
As I already mentioned WPA2 Personal, not WPA2/WPA Mixed Mode.
from Red Cricket to All Participants:
ok
from Apu Nahasapeemapetilon (XXXXX) to All Participants:
Now, change the password for both the network , make it sure that password should be the same for both the network.
from Red Cricket to All Participants:
can I use the password I already have set?
from Red Cricket to All Participants:
does it have to change?
from Apu Nahasapeemapetilon (XXXXX) to All Participants:
If you change it, that will be better.
from Red Cricket to All Participants:
I will have to reconfigure all my clients
from Apu Nahasapeemapetilon (XXXXX) to All Participants:
Okay... then keep it same.
from Apu Nahasapeemapetilon (XXXXX) to All Participants:
Please save the settings.
from Red Cricket to All Participants:
ok
from Red Cricket to All Participants:
done
from Apu Nahasapeemapetilon (XXXXX) to All Participants:
Click on Administration
from Red Cricket to All Participants:
ok
from Apu Nahasapeemapetilon (XXXXX) to All Participants:
Enter the Router password and Re confirm password as similar to the wireless password we have.
Make it sure it should be the same.
from Red Cricket to All Participants:
ok
from Red Cricket to All Participants:
done
from Apu Nahasapeemapetilon (XXXXX) to All Participants:
Now, please uninstall the previous cisco connect from your computer.
from Red Cricket to All Participants:
ok
from Red Cricket to All Participants:
let me find the install cd
from Red Cricket to All Participants:
found the cd and i am uninstalling cisco connect
from Apu Nahasapeemapetilon (XXXXX) to All Participants:
We dont need that.
from Red Cricket to All Participants:
i will use add/remove progs in the control panel of windows
from Apu Nahasapeemapetilon (XXXXX) to All Participants:
That's correct.
from Red Cricket to All Participants:
ok we don't need the install cd
from Apu Nahasapeemapetilon (XXXXX) to All Participants:
Just tell me the operating system installed on your computer?
from Red Cricket to All Participants:
windows xp
from Red Cricket to All Participants:
I have uninstalled cisc conn
from Apu Nahasapeemapetilon (XXXXX) to All Participants:
Let me confirm that you have Cisco E3000 Router ?
from Red Cricket to All Participants:
yes
from Red Cricket to All Participants:
I have the e3000
from Apu Nahasapeemapetilon (XXXXX) to All Participants:
http://homedownloads.cisco.com/downloads/utility/Downloadable.CiscoConnect.E3000.1.2.10218.1-ship-Stable.Hotspot,0.exe

Click on the link and Save onto your desktop screen for easy access.
from Apu Nahasapeemapetilon (XXXXX) to All Participants:
Please click on Run when its saved.
from Red Cricket to All Participants:
can you email that link to russell_cecala@yahoo.com
from Red Cricket to All Participants:
i am running the chat from my comptuer at work
from Red Cricket to All Participants:
not where I have installed the cisco conn
from Apu Nahasapeemapetilon (XXXXX) to All Participants:
Okay...
from Red Cricket to All Participants:
thanks
from Apu Nahasapeemapetilon (XXXXX) to All Participants:
On the top of the chat window right hand side corner you an click on the envelope icon and send this transcript it to your email id.
from Red Cricket to All Participants:
ok
from Red Cricket to All Participants:
off it goes
from Apu Nahasapeemapetilon (XXXXX) to All Participants:
You are not able to send the email...
from Red Cricket to All Participants:
I got it downloaded
from Red Cricket to All Participants:
should I run the download?
from Apu Nahasapeemapetilon (XXXXX) to All Participants:
Great...
from Apu Nahasapeemapetilon (XXXXX) to All Participants:
Sure, please.
from Red Cricket to All Participants:
it is downloading updates
from Apu Nahasapeemapetilon (XXXXX) to All Participants:
Sure, please let it do..
from Red Cricket to All Participants:
ok
from Apu Nahasapeemapetilon (XXXXX) to All Participants:
Just follow the steps what you can see on the screen.
from Red Cricket to All Participants:
ok
from Red Cricket to All Participants:
still downloading
from Apu Nahasapeemapetilon (XXXXX) to All Participants:
aaaaahhhh.. .
from Red Cricket to All Participants:
ok download done
from Apu Nahasapeemapetilon (XXXXX) to All Participants:
What you can see on the screen ?
from Red Cricket to All Participants:
your router has lareday been set up ...
from Red Cricket to All Participants:
do you want to keep your current router settings and install Cisco Conn. If so have your router password ready
from Red Cricket to All Participants:
I guess I should choose yes
from Apu Nahasapeemapetilon (XXXXX) to All Participants:
That's correct, selet yes and continue to go ahead.
from Red Cricket to All Participants:
ok back to the same old window
from Red Cricket to All Participants:
"the router advanced setting have been changed"
from Red Cricket to All Participants:
hello
from Red Cricket to All Participants:
do you know the default password for the guest access ?
from Apu Nahasapeemapetilon (XXXXX) to All Participants:
We dont have a default password for guest password it is ranndomy created by cisco connect applicatoni.
from Red Cricket to All Participants:
well I am still locked out of the guest access
from Red Cricket to All Participants:
I guess I will have to set the router back to factory defaults and reinstall the cisco con software
from Apu Nahasapeemapetilon (XXXXX) to All Participants:
Click on Adminstration and then Restore it to factory default option over there.
from Red Cricket to All Participants:
yeah I know. I don't have the time to do that right now
from Red Cricket to All Participants:
can't take a network outage right now
from Apu Nahasapeemapetilon (XXXXX) to All Participants:
So, Recommed you to come back to chat sesion or call us on our phone support number 1-800-3260-7114 for furthere assistanc.e
from Red Cricket to All Participants:
ok thanks for trying
from Apu Nahasapeemapetilon (XXXXX) to All Participants:
You are most welcome.

Monday, October 04, 2010

How do I verify that sshd is compiled and linked with PAM support.?

How do I verify that sshd is compiled and linked with PAM support.? No really how is this done?  There doesn't appear to be a command line switch like a -V or something like that, that would tell what I need to know.  Luckily I am running Redhat and can look at the SRC RPM's (openssh-server) spec file ... TBC

Saturday, October 02, 2010

iRenew ??? What a Crap! I'd be so embarrassed to wear one!

iRenew ??? What a Crap! I'd be so embarrassed to wear one!
Really have you seen this TV ad? https://www.buyirenew.com/
How awful!!! Would you give a job to some who would wear
something SO DUMB!  If you had a job would you want anyone to
see you wearing your iRenew bracelet ?

Things I Still Can't Do

  • E3000 Linksys - SUCKS - Why? I can't change the password on my -guest connection LAME !
  • Mount DVD media on my ubuntu server 10.04.1 obvious bug. SUCKS
  • Using MyBook External USB devices still a PAIN IN THE ASS! (hald SUCKS)

Just found a IBM Lenovo T50 in the e-waste recyclying at work !!!

Just found a IBM Lenovo T50 in the e-waste recycling at work !!!
Hmmm ... I found a docking station too!!! Let's have fun with ubuntu and wireless access !!!

DANG! Fedora 13 still downloading !!!

That's the nice thing about ubuntu! Nice, small functional installation in under 10 minutes !!!

Ventured into Perl 6 land tonight ... http://perl6.org/

http://perl6.org/ what an awesome web site !!! To bad it is not delivered via Perl 6. SAD FACE

Going to Give Fedora 13 a Go!

Going to Give Fedora 13 a Go!  I like the theme (Apollo Project) The Apollo Project the crowning achievement of White America Males (still waiting for the rest of you to catch up :)

Please check it out

OpenSSH Server on Fedora Core release 6 (Zod) SUCKS!

One cannot change the listening Port to anything other that 22. SAD FACE! :(

ubuntu USB Mybooks and UUID's

I have noticed that my USB external hard drives will unpredictably umount them selves and UUID change or at least the previously reported UUID no longer exist!  score one for the "UUID SUCKS" team.

Friday, October 01, 2010