SecureCube.com

17Feb/090

Ignore Errors with dd

Sometimes you want dd to ignore errors while making an image. The following will do just that:

dd if=/dev/hda of=./securecube.iso conv=noerror,sync

You can read the man page on dd here.

Filed under: Linux No Comments
27Nov/080

iwlwifi-4965-2.ucode firmware file req failed

This problem started to occur to me while moving to kernel 2.26.7.7

The problem is that the file doesn't exits. I was able to fix it by downloading the latest image (iwlwifi-4965-ucode-228.57.2.21.tgz) from Intel Linux Wireless. Once downloaded and unpacked copy iwlwifi-4965-2.ucode to /lib/firmware/

$ wget http://intellinuxwireless.org/iwlwifi/downloads/iwlwifi-4965-ucode-228.57.2.21.tgz

$ tar xzvf iwlwifi-4965-ucode-228.57.2.21.tgz

$ cp iwlwifi-4965-ucode-228.57.2.21/iwlwifi-4965-2.ucode /lib/firmware/

This was performed on a Lenovo R61 running Debian.

Filed under: Wireless No Comments
21Jan/070

PHP w/ IIS6 on x64

To run php which is a 32bit app you need to set Enable32bitAppOnWin64 to 1.

To do this create a batch file with the following:

cscript %SYSTEMDRIVE%\inetpub\adminscripts\adsutil.vbs SET W3SVC/AppPools/Enable32bitAppOnWin64 1 

Filed under: General No Comments
12Jan/070

Kistmet and Cisco 350 Wireless

Use the following for the source:

source=cisco_wifiX,eth1:wifi0,cisco

Of course substitute eth1 with your wireless interface card.

Filed under: General No Comments
27Aug/060

jedit Stuck Install

Tried installing jEdit today only to come to a conclusion that I will be using Kate instead. But after trying to install jEdit through the use of binaries and apt I was un-successful. I then started to remove all traces of the jEdit install that I tried to do. Once I felt I had finished I moved on to the next project only to get struck by jEdit once again. After trying to install a new package via apt I came up with this error:

E: The package jedit needs to be reinstalled, but I can't find an archive for it.

To make a long story short the following fixed the problem:

sudo dpkg --remove --force-depends --force-remove-reinstreq jedit

Filed under: General No Comments
27Oct/050

mssql_connect problem

Ended up moving a web portal from a PC class machine to a server platform using the same OS, PHP version 5.0.5, and php code. After the move the mssql_connect php function wasn't connecting to the MSSQL server (which hasn't moved). I ended up finding the solution on php's mssql_connect manual page. The following resolved the issue:

1) Open regedit.exe
2) Browse to the key named HKEY_LOCAL_MACHINE\\SOFTWARE \\Microsoft\\MSSQLServer\\Client\\ConnectTo
3) There should be one or more keys in the format "SERVER" = "LIBRARY,SERVER,PORT"
where SERVER is a NetBIOS name, Named Pipe alias or the server's IP address, and PORT is usually 1433.
4) If LIBRARY is set to DBMSSOCN, try changing it to DBNETLIB. That worked for me.
5) Restart IIS

If that doesn't fix the problem or you don't have the "SERVER" key, try the following:

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ MSSQLServer\Client\ConnectTo] (strip space)
"DSQUERY"="DBNETLIB"

Filed under: Web Apps No Comments
6Sep/050

APT::Force-LoopBreak

Tonight I was installing the latest net-install using the 2.6 kernel from debian I was eventually prompted by:

This is often bad, but if you really want to do it, activate the APT::Force-LoopBreak option.

This was occuring due to the e2fsprogs, which I wasn't using. So to fix the problem you need to do a:

apt-get -u -o=APT::Force-LoopBreak=true upgrade

Filed under: Linux No Comments
5Sep/050

ipw2200 Wireless Setup

After many hours of trying to find a good artical on how to setup the ipw2200bg wireless card I found my answer -> Here-ubuntuforums.org. You can also download the article here, just to make sure I didn't lose it ;) HERE

Filed under: Wireless No Comments
26Aug/050

mySQL Old_Password

To set a users password to use the "old password" method the following is the syntax.

SET PASSWORD FOR 'some_user'@'some_host' = OLD_PASSWORD('newpwd')

Filed under: Linux No Comments
4Aug/050

apt-get Proxy

To use a proxy on your debian install via 'apt-get' insert the following into '/etc/apt/apt.conf'

Acquire::http::Proxy "http://[proxyname]:[port]";

* Exclude the brackets [ ]

Filed under: General No Comments
3Jul/050

PHP5 IIS6 Install Guide

While setting up php5 there is few tricks for the new version that I wasn't aware of. I found a good guide at the following location. PHP5 IIS6 Install Guide

Filed under: General No Comments
27Jun/050

Guide to The Linux FSH

This is a good guide for new linux users to help and understand the FSH (File System Hierarchy) of the linux OS.

Filed under: General No Comments
6Jun/050

VNCserver Setup

You've just installed Debian, but your girlfriend wants her monitor back. That's OK, you were planning on running it headless, anyway. But, wouldn't it be nice to check out some of those groovy GUI apps? Don't fret, VNC will let you interact with a desktop environment from just about any platform available.

Install vncserver (as root):

apt-get install vncserver

Choose your desired window size and color depth, then, as an ordinary user, open a terminal and type:

vncserver -geometry 1024x768 -depth 24

This will prompt you to create a password:

You will require a password to access your desktops.

Password:
Verify:

The server will start and tell you where to access it:

New 'X' desktop is foobar:1

Starting applications specified in /etc/X11/Xsession
Log file is /home/chingchang/.vnc/foobar:1.log

Open the VNC viewer on your remote machine, enter the hostname:screen and password (use a hostname or IP that your client machine understands), and your Linux desktop will open in a window! Network speed and processor power will affect performance, but it's amazing how many apps will run fine under VNC. You might not be able to play Frozen Bubble, but you can use productivity applications without any trouble.

To kill the server enter a command similar to this, using the appropriate settings:

vncserver -kill :1

Filed under: Linux No Comments
2May/050

Server Deployment

Well just got done deploying my business server to the Equinix IBX datacenter in Chicago. Can't beleive how many servers where in this place. Servers, upon servers, upon servers, upon servers. It was just truly an amazing site to see.

So far all pings and transfer rates are what I was hoping for!

Filed under: General No Comments
28Apr/050

Revealing Asterisks

Resently someone had requested to recover a lost password from a program. Found a good tool that was able to reveal the password from the text box that was asterisks hidden. AsterWin

Filed under: Microsoft No Comments
26Apr/050

Bridging HowTo

Was looking for a good article explaining bridging and a nice howto. Stumbled across this Bridging HowTo. Very good article. Use this when I need to put a quick network sniffer in-between two nodes.

Filed under: Linux No Comments
8Apr/050

Internet Text Editor

Surfing around SF (sourceforge.net) today and came across an internet text editor that could be useful for anyone that want to edit text on the internet. It's pretty self explainitory. + the fact that it's free makes it all the better. Check it out FCKeditor

Filed under: Web Apps No Comments
7Apr/050

Microsoft Anti-Spyware

Microsoft is now offering a *free* download of there beta anti-spyware package. I must say this package is pretty nice and is a better then running nothing at all on your PC if your still using IE to browse the net. :cough:Firefox:/cough:

Information

Filed under: Microsoft No Comments
7Apr/050

Defcon 13

Looking forward to attending this. I plan on leaving July 28th and return on the 31st from Las Vegas!
Defcon13

    What, where and when:

DefCon 13 will be held at the Alexis Park in Las Vegas, Nevada, July 29-31, 2005.

    Admission:

$80 CASH ONLY at the door.
There is no pre-registration for the event. All persons on the property will be required to have a badge.

More information can be retrieved on their site @ defcon.org

Filed under: General No Comments
7Apr/050

The Feds can own your WLAN too

Well it looks like the Feds are starting to use the common tools of the trade to get into wireless networks. They also were able to do it in a reasonable amount of time. Everyone knew that WEP was crackable but in 3 minutes :evil face:

After about three minutes of capturing and cracking, the FBI team found the correct WEP key, and displayed it on a projected notebook screen. Agent Bickers, still speaking to the audience, turned around, looked at the screen and was surprised, "Usually it takes five to ten minutes."

Tools Used

* Auditor's Security Collection - Contains all the wireless hacking tools already installed
* Kismet
* Airsnort
* Aircrack (includes Aireplay and Airodump)
* void11

Filed under: Wireless No Comments