background preloader

Tricks

Facebook Twitter

Temporary Email Aliases. Tips and downloads for getting things done. Lookup IP address to Country, State, City, Netblock, Longitude and Latitude. How to make flash drive that copy's users files silently and automatically. Ok there is no order in the file creation process just that you have all files created and on the flash drive. I will start out with the autorun.inf. This file is used when you insert the flash drive into said computer. Also used to change the thumb drive icon to something more acceptable for social engineering.

Here is the code, you will have to open a simple word editor such as word, you can past this code into word and edit to your hearts content. [autorun] icon=drive.icoopen=launch.bataction=Click ok to Run game for Windowsshell\open\command=launch.bat a couple of notes the code is between the lines not the lines at all so dont put them in your autorun file. also when you save this file after editing or pasing this in the editor make shure you save it as all files and put a .inf after it... like this autorun.inf look at pic two if you have any issues. You can change the icon to your tastes what you will have to do is find a .png a png file is an icon file. Hack a Day. Android app pwns cardkey entry systems, opens all the locks. Running Python Code in Windows Batch File Trick | HalOtis. I found this really neat bit of .bat file magic that will let you save your python script code in a .bat file and run it in windows just like any other script.

The nice thing about this is that you don’t have to create a separate “launch.bat” file with one “start python script.py” line in it. This makes running python scripts in Windows more like it is on a Linux/Mac where you can easily add a #! /usr/bin/env python line to the script and run it directly. Here’s the bit of tricky batch file magic that does it: The way it works is that the first line of the file does two different things. starts python interpreter passing the name of the file in, and the -x option will tell it to skip the first line (containing .bat file code)When python finishes the script exits.

This nifty trick makes it much nicer for writing admin scripts with python on Windows. Update: fixed to properly pass command line arguments (%* argument passes through the command line arguments for the bat file to python) How to inject code into a exe file. Title: How to inject code into a exe file Autor: Iman Karim Email: iman.karim@smail.inf.fh-bonn-rhein-sieg.de Home: *** THIS TUTORIAL IS ONLY FOR EDUCATIONAL PURPOSES! *** (english mistakes are default :P) Content: - Requirements - Getting started - Some ASM - Last words -Requirements- At first we need a debugger.

I prefer OLLYDBG(the best debugger on earth :P) At twice we need a target application to inject our code. -Getting started- Our goal is to inject some code into the Notepad.EXE . [My Notepad screenshot] If you're sure now that's the original Notepad open the Notepad.exe with Olly. [click to enlarge] Because we're going to inject some code we've to have some space to inject it.

[CodeCaves] Do you see the red box I've drawn for you? ***** START QUOTE FROM THE WIN32 PROGRAMMERS REFERENCE The MessageBox function creates, displays, and operates a message box. This is all you need to know about the MessageBox. OK! -Some ASM- Iman Karim.