Posts

Phishing and their "obfuscated" code

Image
PLEASE DO NOT TRY THIS UNLESS YOU KNOW WHAT YOU ARE DOING.
JUST DON'T.
I usually receive a lot of phishing and sometimes i get a mail where they attach a zip file.
after giving that zip to the antivirus, i opened it. i found this 2 files:


Now the .txt file tells you to double click the .js which is a WSH script and is what we are going to "reverse".

Ok, so this is the .js file.


now it looks like a mess.. or maybe not?
if you look closely you'll see something interesting:
There are 2 vars, one long which looks like a key then a longer one which looks like an encrypted message.
After that there is a for loop and what looks like a XOR operation:

Now the most simple cryptographic method is XOR and we have at the start something that looks like a key; So let's clean the code!
To do that, I simply use the search and replace function in Notepad++ (most of the text editors have this function).
So we have our key and our encrypted data (enc_data) and then the loop code

As you can see…

Java is Javascript (with demonstration and files)

Image
Yes it's true, i can show you that is actually true.
JavaScript and Java are the same thing.
This will demonstrate that I'm not joking.



Yes, it's the same thing, so STOP saying that Java is NOT JavaScript.

These are the files i used to build that! [ZIP] JavaJS.zip

OK OK, I'm joking. I just abused the jar (aka zip) file format. yes it's a valid Java because i compiled it with javac and it's a valid JavaScript because it's a valid html, but the truth is they are not the same thing.
I appended the jar to the html and since the ZIP has his header in the bottom (at the end of the file for historic reasons), it will be seen as valid by both. Java will only read the vaild jar and the browser the valid html.
This can be used just for fun between friends/programmers. The Truth

Release - South Park Unofficial

Image
Hi, this is my first Addon i hope you will like it!

Features:
Ability to play all the South Park content from southpark.cc.com and southpark.de.Ability to play a random episode.Ability to see the featured episodes.German/English audio support (Spanish support will be available soon)

Download and Install:
You can manually download and then install the add-on from https://github.com/wargio/plugin.video.s...master.zip
Change your language from the addon settings

Platforms:
all

Release History:
0.1.0 - Initial version0.1.3 - added langs and fixed geolocation0.2.1 - added support to southpark.de

Todo:
Add addon translationSearchAdd the spanish language to the script (they added it today: 04/17/2015)

Forums:
http://forum.kodi.tv/showthread.php?tid=224662 [Official]http://playstationhax.it/forums/topic/1731-south-park-unofficial-addon-for-xbmckodi/

Screenshots:

Homemade Weather Station [PT 1]

Image
This time i've decided to build an homemade weather station.


I've ordered a month ago a few Dallas DS18B20 one wire digital thermometer and a welded DHT11 (Hygrometer + Thermometer) from an eshop. When i started this project i forgot to buy some matrix boards so i took some really old broken boards (they were mostly old FM radio) and i have unwelded the components. After some PCB modifications i used the old board to weld the DS18B20 with a 4.7K resistor and 3 old cables got from an old (and broken) PC.



I took an old Liquorice metal box and i've isolated the components with the wire tape.


While i was searching for boards, i found an old mini engine for a model railway locomotive and welded it with 2 cables. My future plan for this engine is to use it as an Anemometer.


What's next? Well i found also a solar panel from a broken Chinese calculator (those given as gadgets in the fairs) and i've decided to use it to get the light intensity, but since i have also a photores…

Raspberry PI + YwRobot Arduino LCM1602 IIC V1 HD44780 LCD

Image
Finally i have some time to write a new post.

Let's start:
I bought a YwRobot Arduino LCM1602 IIC V1 HD44780 LCD from amazon for 6,57 €

It has a I2C interface (so it will use just 2 cables, SDA & SCL, + 2 for VCC & GND).

I found some tutorials online, but they were for Arduino or python... NOTHING FOR C!!
So i decided to write a damn C lib for this component.
I had to cross check various codes/datasheets to understand how it works, but at the end i wrote it.
So, this is my lib! Enjoy it ;)
You can grab from the link at the end of the post.


#include "stdio.h" #include "string.h" #include "i2c.h" #include "lcd.h" #define I2C_FILE_NAME "/dev/i2c-0" const char* txt[] = { "I work on the PI", "via liblcm1602.a" }; int main(){ int i2c_dev; lcd lcd0; // 0x27 is the address of the i2c device i2c…

Just a simple shell disassembler for ppc64 elfs

Image
I had more the an hour and i decided to write a concept of shell disassembler for the ppc64 elfs, and i used capstone disassembler (capstone [git])

this was the result:






An advice: DO NOT USE MY CODE! it's buggy and has errors!

[Download][git]https://github.com/wargio/disassemble_ppc64