12th October, 2008

Simple trick if you are dealing with lots of log files /--evilbitz   

Well, it’s all about the numbering :-)

You start with 1.txt and ends up with 1756.txt, too many logs and they always seems unorganized on your disk, so you are arranging the file by date but this may also be a problem with asyncronous writing to log files. And either way, it still it look bad when you arrange the files by date.

So do what I do, start numbering your files from 10000, this way they’ll be arganized by their name properly.

This is silly I know :-)



Posted in programming, random | 1 Comment

30th September, 2008

Remote control winamp from your Nokia N95 /--eitama   

Hello folks,
Recently I bought a dell inspiron 1520 laptop, Life was good, everything was working great!!!
Till one day – My room mate, bought a Dell XPS 1530M laptop,
If it was not enough that he has GDDR3 memory and I have GDDR2, he also received a little dell remote that fits inside the
express card socket on the side – This remote also worked on my computer.
So I went to ebay and got me a remote as well!
But I still had to top the GDDR3 superiority his laptop had, in one way or another.
So I decided i want to be able to control my winamp from my N95 via bluetooth.

The result was pretty nice (:

A Server program written in TCL which listens for tcp connections and bluetooth serial connections,
the server generates playlists when it starts according to the music folder structure on the computer,
and allows the user to load playlists and control winamp from the phone over internet, WiFi and bluetooth.

A Client python program sitting on your phone that acts as a remote.

The program requires a few steps to get going so if you really want it to work on your phone
(symbian s60 v3) you will need to put some effort in preparing the needed prerequisites.

  1. Install TCL on your computer from Activestate
  2. Extract twapi.zip to your c:/tcl/lib/twapi (or any other /tcl/lib/twapi folder)
  3. Install python for s60, and python shell for s60 on your phone.
  4. On your phone, Create a folder in your memory card called IMG inside Python
    This will look like /memorycard/Python/IMG
    Extract all these Images to this folder, so they will all be inside /python/IMG/
  5. Copy this python file to your phone.
  6. On your computer, Create a bluetooth com (serial port)
    consult your bluetooth manual on doing so.
  7. Put this inside a folder, extract it and run hotkeys.tcl – This is the server side application that should always run on your computer.
    (Run it with wish/wish84/wish85)
  8. If an error message pops, read it – and follow the instructions until they stop popping – they do not pop for no reason!!!
  9. After all is set, run the remotebt3.py in the interactive python interpeter on your s60 phone.
  10. Choose a connection method, if you choose Bluetooth, be sure to have a paring to your computer already set.
  11. If you choose TCP, make sure you have a wifi with DHCP and no firewall is blocking hotkeys.tcl which on default listenes on tcp port 9090 for new connections.
  12. If you get connected a green box will appear with the connection method, now for a few stuff you can do :
    • Press 2 for a menu of things you can do.
      They are pretty easy to understand – the only one which needs some clearing is :
      Rebuild m3u list – this one recreates your m3u files from your music folder configured inside hotkeys.conf
    • press 8 to select a playlist from the ones generated by hotkeys on your computer.
    • press SEND to connect in a different connection way (bluetooth/wireless/internet)
    • Pressing 3 times on W will open/close winamp.

Feel free to change / Distribute / do anything with the tcl and python code,
“Clamp” is a free tool downloaded from the internet, and all right about this cool tool is kept for it’s original creator
I am just using it – I did not create it.

I know the install prcedure is not fun,
but i did not have time to study nokia .sis creation and making a nice installer for windows
if you feel these are lacking – Create them!
For questions, contact me at eitamaa (at) gmail (dot) com.

(Have I topped the GDDR3 or not??)

Cheers,



Posted in programming, random | 4 Comments

6th September, 2008

Word Challenge Hack /--evilbitz   

Word Challenge is a game on facebook in which you get 6 letters and need to make up words in order to get points, this game is highly addictive because you play against your friends. Since this Swedish girl made 14,098 points (very high) and since I had to beat her in word challenge I decided to cheat :-)

…So I built up this bot, basically it’s a python script that sends keystrokes to the software using simple word combinations. The script “knows” how to send 3 letters and 4 letters combinations, I’ll leave it to the reader to handle the 5 and 6 letters combinations in case he wants to extend the script, what I’ve done was sufficient for my purpose.

In case you want to test the script, you’ll have to have python installed and run my script from the command line (make sure after you hit “3comb” you set the focus to the word challenge window, you have 2 seconds for that).

Enjoy :-)



Posted in hacking, programming | 4 Comments

4th August, 2008

Debugging ACPI Using WinDBG /--evilbitz   

Hi,

Here are some tips about debugging Windows ACPI DSDT/ASL using windbg.

Installing the checked version of acpi.sys

You need to get the checked version of acpi.sys by downloading the checked version of your service pack, then unpack it locally and expand the acpi._sy file (it is actually a .cab file). The checked version will let you use the amli debugger in order to trace and step through ASL code.

Tracing ACPI ASL Code and Object evaluation

!amli set traceon spewon verboseon – This is a bit slow but produces a nice log file (for real man only).

ASL Debug Print

If you can change the code (dump and disassemble the DSDT and then compile and embed it again), you can add some string outputs to the ASL code, you can do that by two ways, if you connect a debugger then use the simple method of storing a string into the Debug local variable (example below), the other way is to use my asl print function which prints to an io port of your choice, this is not useful if you are not a platform developer or use a virtual machine.

Examples:

Store (“Debug asl print example – 1″, Debug)
\ZDBG (“Debug asl print example – 1″)

Break Points

  • If you want to debug ASL code, you can set breakpoints with !amli bp
  • You can embed a breakpoint by changing the DSDT and put the BreakPoint directive in the ASL code where you want the debugger to break.

After you broke onto the amli debugger, you can trace and step() through the code.



Posted in lowlevel, programming | Be The First To Comment!

22nd July, 2008

Fake Police Light bar for your N95 /--eitama   

Turn your Nokia N95 (Tested) into a police light bar. This was Eitam’s sick idea :)

  1. Install Pyhton for S60 on your Nokia N95
  2. Extract Fake police light bar for your N95 and copy police.py to your N95 (to the Python directory)
  3. Start Python on your phone
  4. Choose Options -> “Run Script…”
  5. Select the file police.py, click OK
  6. Place your N95 on the front of your cars dashboard when it is pointing outside, this is for cars that are in front of you so they would see the lights when the driver look at their rear mirror
  7. Start using the horn so cars in front of you will move aside and make way 8)

Cheers,
Guy & Eitam.



Posted in programming, random | Be The First To Comment!

Top »
"If you can't join them, beat them!"
Search Evilbitz: