blackhat - By DJ Boo!

SoldierX.com Hakin9 Magazine HAX Radio - The stream the FBI Listens to! Offensive Security Wireless Professional PWNIE 2012 Nominations The Hip-Hop Realm

Archive for the ‘WeakNet Linux’ Category

Entify Package Manager

Wednesday, May 1st, 2013

https://code.google.com/p/entify-pm

I created Entify to have the latest and greatest of not only my applications, but other’s too. including mostly all bleeding edge WiFi hacking and administration applications specifically compiled to take full advantage of all resources.

Entify will use my web-server as a repository for the source code tarballs.

I will be releasing an ALPHA copy to the Google Code page sometime this week or weekend. stay tuned!

~Douglas

Change the Color of Text on your Wbar

Tuesday, April 2nd, 2013

wbar is an amazing light-weight dock application that I have been using with FluxBox for years. Recently, with the release of WEAKERTH4N: BLUE GHOST, I made my own icon theme and set for the distro which clashed with the white letters used in the text of wbar making it unreadable:

So I decided to download the latest version of wbar and take a looksy at the sauce. To compile this code you will need the following dependencies:

libglade2-dev
libimlib2-dev
intltool

Which you can install on Debian systems with aptitude – no problem.

I use grep when troubleshooting or reverse engineering code – it’s my first go-to for analyzing other’s code. I grepped recursively for the word color and found the lines:

/* draw text */
imlib_context_set_color(0, 0, 0, 255);
imlib_text_draw(tw+1, th+1, cur_ic->text.c_str());
imlib_context_set_color(255, 255, 255, 255);

In the file ./src/core/SuperBar.cc This function [imlib_context_set_color] looks familiar and the values are R,G,B,A for red-green-blue-and transparency respectively. Also I knew that the color white is all colors combined and usually has the highest values: (HEX) #ffffff or in our case or 256 bit (RGB) (0-255), 255-255-255. Black is the lowest: (HEX) #000000 or 0,0,0 in 256 bit RGB. Then I looked up the RGB set for the color yellow to match my theme and found that it was 255,255,0 and HEX #ffff00. I changed the bottom function (since they are just layers – i figured the bottom layer was for the shadow) and ran:

make clean && make uninstall && make && make install

It worked! The first function [imlib_context_set_color] makes the color of the drop shadow, which is black. So then I decided to make the line unique by removing the spaces between the commas and integers like so:

imlib_context_set_color(255,255,255,255);

which obviously didn’t break the function and then wrote a simple sed script to change the color on the fly -pre-compilation:

#!/bin/bash
sed -i -r -e "s/(imlib_context_set_color\()[0-9]+,[0-9]+,[0-9]+,[0-9]+\)/\1$1,$2,$3,$4\)/" src/core/SuperBar.cc

Now we can just look up the color code in a chart like this one: http://www.tayloredmktg.com/rgb/ and pass the values ot the script like so:

./colorchange.sh 255 255 0 255

The lower the last number, the more transparent the text color will be, but make sure you match it with the shadow!

~Douglas

WEAKERTH4N: Blue Ghost (version 1.9) Download

Tuesday, March 19th, 2013

The last release was broken due to the Linux 3.8.X kernel not playing well with unionfs – which is pretty lame. Also there was an awful Java fonts bug that ruined dpkg. I was able to fix both and rolled the kernel back to 3.7.10 which has been tested on USB and working properly with Unetbootin. The newer kernel makes the ISO smaller. So, I present to you, version 1.9!

Download from HaxRadio:

http://hr.weaknetlabs.com

FreeRADIUS-WPE with WEAKERTH4N Instructional Video: Easy! :D

~Douglas

WEAKERTH4N: Blue Ghost BETA v1.5

Sunday, March 17th, 2013

I recompiled the kernel with better Netfilter support and even more wifi drivers – I recompiled the NVIDIA 310 driver and compat-drivers. I added FreeRADIUS WPE, hostapd, hashcat, more scripts, and even on screen display scripts. (the WiFi one was m33b0′s idea). Also, I added more Hardware hacking utilities, Android hacking utilities, and changed the Grub screen resolution and configuration for faster booting.

Download it now! (hr.weaknetlabs.com) Thank you HaxRadio for hosting! :D

~Douglas

Disabling SSH in inetd for WEAKERTH4N

Wednesday, March 13th, 2013

dragon brought to my attention that I accidentally left ssh running on port 23. To stop it, please open the file:

vim /etc/inetd.conf

and edit the following light blue line:

to have a “#” pound symbol in front of the line to make it just like the rest of them – essentially commenting this out.

Then we need to restart inetd

/etc/init.d/openbsd-inetd restart

It will be disabled in the upcoming BETA 2 release this weekend.

~Douglas