Monthly Archives: July 2012

nmap scans ips and ports

A useful linux/unix tool, nmap scans ips and ports of given hosts: Nmap 5.21 ( ) Usage: nmap [Scan Type(s)] [Options] {target specification} TARGET SPECIFICATION: Can pass hostnames, IP addresses, networks, etc. Ex:,; 10.0.0-255.1-254 -iL <inputfilename>: Input from list of hosts/networks -iR <num hosts>: Choose random targets –exclude <host1 [,host2][,host3],…>: Exclude hosts/networks –excludefile <exclude_file>: Exclude list from file HOST DISCOVERY: -sL: List Scan – simply list targets to scan -sP: Ping Scan – go no further than determining if host is online -PN: Treat all hosts as online — skip host discovery -PS/PA/PU/PY[portlist]: TCP SYN/ACK, UDP or SCTP discovery to given ports -PE/PP/PM: ICMP echo, timestamp, and netmask request discovery probes -PO[protocol list]: IP Protocol Ping -n/-R: Never do DNS resolution/Always resolve [default: sometimes] –dns-servers <serv1 [,serv2],…>: Specify custom DNS servers –system-dns: Use OS’s DNS resolver –traceroute: Trace hop path to each host SCAN TECHNIQUES: -sS/sT/sA/sW/sM: TCP SYN/Connect()/ACK/Window/Maimon scans -sU: UDP Scan -sN/sF/sX: TCP Null, FIN, and Xmas scans –scanflags <flags>: Customize TCP scan flags -sI <zombie host[:probeport]>: Idle scan -sY/sZ: SCTP INIT/COOKIE-ECHO scans -sO: IP protocol scan -b <ftp relay host>: FTP bounce scan PORT SPECIFICATION AND SCAN ORDER: -p <port ranges>: Only scan specified ports Ex: -p22; -p1-65535; -p U:53,111,137,T:21-25,80,139,8080 -F: Fast mode – Scan fewer ports than the default scan -r: Scan ports consecutively – don’t randomize –top-ports <number>: Scan </number><number> most common ports –port-ratio <ratio>: Scan ports more common than </ratio><ratio> SERVICE/VERSION DETECTION: -sV: Probe open ports to determine service/version info –version-intensity <level>: … Continue reading

Posted in Security, Server Admin, Tech Tips | Tagged , , , | Leave a comment

25 Most Popular Shared Web Hosting Companies

1and1 AN Hosting A Small Orange BlueHost DreamHost GoDaddy HostGator HostICan ICDSoft IPower LaughingSquid MediaTemple GridServer MediaTemple (dv) MegnaHost NearlyFreeSpeech.Net NetworkSolutions pair Networks Rackspace Cloud Power Hosting Yahoo

Posted in Tech Tips, Web Development | Tagged , | 1 Comment is down – July 2012 is down on July 25, 2012 with a “502 Bad Gateway” error message. This site is so reliably up that it is strange to see be offline. I noticed it when I was using a wget command to download the latest version. wget –2012-07-25 11:31:20– Resolving (…, Connecting to (||:80… connected. HTTP request sent, awaiting response… 502 Bad Gateway 2012-07-25 11:31:20 ERROR 502: Bad Gateway.

Posted in Software, Tech Tips, Web Development | Tagged , | Leave a comment

WordPress: Convert All Tables To Utf8

Are your WordPress MySQL Tables of mixed charsets? The ideal or standard character set is utf-8 as it supports multiple languages and special characters – so people from all over the world can post comments, register, and interact with your blog without having characters from their name, languages, etc converted into weird or strange symbols. I read the WordPress article on Converrting your Tables but wasn’t so sure which direction to go. The article states: In most cases if a collation is not defined MySQL will assume the default collation for the CHARSET which is specified. For UTF8 the default is utf8_general_ci, which is usually the right choice. After a little research I got it working. The following code is from the supplemental code page from that article and I found that the code below (second code block on that page) worked well for WordPress 3.4.1 I would not recommend using the bash script at the bottom of that page because while it converts the tables it doesn’t convert the fields. When connecting from the command line you may need to specify –protocol=TCP if you get an error like ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock’ (2) But again, I would not really recommend that script, because while it will run, it will basically only run the following commands: ALTER TABLE wp_commentmeta CHARACTER SET utf8; ALTER TABLE wp_comments CHARACTER SET utf8; ALTER TABLE wp_links CHARACTER SET utf8; ALTER TABLE wp_options CHARACTER SET utf8; ALTER TABLE … Continue reading

Posted in Server Administration, Web Development | Tagged , | Leave a comment

How to set the Featured Image in WordPress

To set a featured image, while editing a page click the “set featured image” link, or if one is existing click the remove link and then click the “set featured image” link. Next you can choose one of the tabs on the window that pops up. If you want to upload an image just drag the image to the window or click on “select file” and choose the image you want. You can also select an image from the media library by clicking on that tab, or if images have already been attached to that post a “gallery” tab will show up. After you upload the image, or if you go to the media library, you can click on the image name to show more details about it. Then, near the bottom there will be a “use as featured image” link.

Posted in Tech Tips, Web Development | Tagged , , , | Leave a comment

Textmate: Toggle Insert Anywhere

When I click somewhere on a line of text – in the empty space part after content – the cursor moves to the exact position I’ve clicked rather than jumping to the end of the line like every other editor seems to do. This is how to reset this behavior and fix Textmate – that is, to click and have the cursor move to the end of that line and not to the actual position you click with the mouse. This is caused by Freehand Editing mode being turned on. Here are the two editing modes that Textmate allows, and here is how to enable / disable both of them: Freehand Editing (Edit » Mode » Freehand Editing) Allows the caret to move past end of line and inside tab characters. It is also possible to place the caret unrestricted by line endings (and tabs) by holding down ? while placing the caret with the mouse. Overwrite Mode (Edit » Mode » Overwrite Mode) This lets you type over existing text

Posted in Mac, Software, Tech Tips | Tagged , , , , , | 1 Comment

Remote Desktop to Raspberry Pi from OS X w/ ssh XForwarding

Can you already ssh into your raspberry pi? In short, you will need to make sure you have a public key in the /home/pi/.ssh/authorized_keys directory. The directory should be chmod 700 and the file chmod 600. Good. If not see the notes below. You can then SSH to the box with something like: ssh [email protected] -i /path/to/private.key -X The -i option will specify your private key and -X will turn on X Forwarding. Once you’ve logged in you should be able to run lxsession to start the Lightweight Desktop (LXDE): If you can’t already SSH into your pi, fusionstrike has some notes on how to set that up. One more note: don’t try and do this as the root user. You may get some errors about A window manager is already running on screen – do it as the pi user as I mentioned above.

Posted in Server Admin | Tagged , , , | Leave a comment

AWS re: Invent Conference Details Available Now

  We are excited to share more details about AWS re: Invent, our first global customer and partner conference. Join the best and the brightest developers, hottest start-ups, and visionary technology leaders in Las Vegas, November 27-29 and be part of the largest gathering of the AWS community.   Important Details Full Conference Pass: $1099 Registration Open Date: July 25, 2012 Find the latest information on tracks, sessions, and speakers on the AWS re: Invent website. We have built the agenda around topics requested by customers. Choose from over 150 sessions led by AWS engineers and architects, product managers, AWS customers and partners, including: AWS Best Practices Compute & Networking, Databases, Storage, Content Delivery… Cloud Computing Use Case Web apps, Big data, High performance computing, Disaster recovery, Mobile, Media sharing… Enterprise IT Migrating enterprise apps to the cloud, Governance and security best practices, Customer case studies… Architecture High availability best practices, Scaling and Performance Tuning, Networking architectures… Developer Tools Using AWS SDKs for your favorite language, Architecting for cost savings, Deployment management tools from AWS and partners… AWS Resource Management Tips for lowering your bill, DevOps in the cloud, Automation and deployment best practices, Performance optimization, Testing… Security Cloud Security best practices, Building PCI and HIPAA Compliant apps, Identity and access management… New AWS Services How to get started with recently launched services like Amazon DynamoDB, Amazon CloudSearch, Amazon Simple Workflow Service… Service Team Office Hours Connect with engineers and product managers to get your technical questions answered   Mark … Continue reading

Posted in Server Admin, Social Media, Web Development | Tagged , , , | 1 Comment

Quicksilver Plugin Tutorial – Basic Tutorial (Draft)

This page is an archived version of Quicksilver Basic Tutorial (Draft)   Introduction A brief tutorial showing the creation, installation, and running of a Quicksilver plug-in (Objective-C) implementing a simple action. Set-up Ensure a development version of Quicksilver is installed (I put mine under ~/Applications/). Ensure Developer Tools is installed (I’ve got whichever one gives me Xcode 2.4). Follow the plug-in template installation instructions (Note that there is an important step involving telling Xcode where certain Quicksilver frameworks live – hint: they live inside the development version of Quicksilver which should now be installed.). Implementation Launch Xcode if it’s not already launched. From the Assistant (or File -> New Project), choose to create a ‘Quicksilver Plug-in’ (You’ll likely choose a location for your project and a name — I’m going to use ‘MyPlugIn’ as a name for this tutorial). Edit Info.plist to make the content as follows (A plug-in’s Info.plist allows a plug-in to communicate details about itself to Quicksilver (e.g. whether the plug-in provides an action)): < ?xml version=”1.0″ encoding=”UTF-8″?> < !DOCTYPE plist PUBLIC “-//Apple Computer//DTD PLIST 1.0//EN” “”> <plist version=”1.0″> <dict> <key>CFBundleDevelopmentRegion</key> <string>English</string> <key>CFBundleExecutable</key> <string>MyPlugIn</string> <key>CFBundleIdentifier</key> <string>com.blacktree.Quicksilver.MyPlugIn</string> <key>CFBundleInfoDictionaryVersion</key> <string>6.0</string> <key>CFBundleName</key> <string>MyPlugIn</string> <key>CFBundlePackageType</key> <string>BNDL</string> <key>CFBundleVersion</key> <string>1A</string> <key>QSActions</key> </dict><dict> <key>MyPlugInAction</key> </dict><dict> <key>actionClass</key> <string>MyPlugInActionProvider</string> <key>actionSelector</key> <string>performMyAction:</string> <key>directTypes</key> <array> <string>NSStringPboardType</string> </array> <key>name</key> <string>My Action</string> </dict> <key>QSPlugIn</key> <dict> <key>author</key> <string>An Author</string> </dict> <key>QSRegistration</key> <dict> <key>QSActionProviders</key> </dict><dict> <key>MyPlugInActionProvider</key> <string>MyPlugInActionProvider</string> </dict> </plist> Edit MyPlugIn.h to make the content: // // MyPlugIn.h // MyPlugIn // #import <qscore /QSObject.h> @interface MyPlugInActionProvider : NSObject { } @end … Continue reading

Posted in Software | Tagged , | Leave a comment

Spam: College Collaborative Networks

I got the following spam message below for the “College Collaborative Networks” which looks like a really shady scam and attempt at targeting people who sign up with junk mail. The domain referenced in the e-mail is but the one that loads in the browser is actually The unsubscribe e-mail address, which I would not recommend e-mailing, is of the domain I would recommend marking this unsolicited e-mail as spam and deleting it. Leave note below if you received a similar e-mail. Dear University Users, The College Collaborative Networks at is now open for sign up While a social network is for sharing of personal news and events, a college collaborative network is for sharing of resources (including data, knowledge and tools) among its members (faculty, staff, students and alumni). In the simplest case members can collaborate to create a comprehensive repository of resources. As specific needs arise further collaborations among individual members can spin off more collaborative networks. With a free membership you are entitled to share, and contribute, resources in the network, and connect to other networks including various knowledge collaborative networks across campuses. You are also entitled to create your own collaborative networks of any kind so others can join. We look forward to your participation! Sincerely, Jeff Kitson [email protected] College Collaborative Networks We apologize if you recevive multiple copies of this message; to unscubscribe please mailto:[email protected]

Posted in Random | Tagged , , , , | 1 Comment