Archivo

Entradas Etiquetadas ‘tool’

win-get apt-get for windows

jueves, 9 de abril de 2009 Albertux Sin comentarios

win-get apt-get for windows

One thing I love of Debian is apt-get command, so why not have not the same, ok not the same but something similar run on Windows?, I search some projects on sf.net but don’t work or are not updated, so I made my own project and works fine:

You can download executable file and source file (perl script) on:
http://win-get.ayalasoft.net

Categories: network, web, windows Tags: ,

Easy Host Fake Win32

sábado, 27 de diciembre de 2008 Albertux Sin comentarios

Easy Host Fake Win32

Algunas veces nosotros queremos redireccionar un host a otra direccion de ip, la forma mas rapida es editar el archivo hosts.

Bueno hice esta utileria que hace eso.

Java Desktop Application, necesitas Java Runtime:

Easy Host Fake Java Setup

Es mi primera aplicacion Java de escritorio en NetBeans

PHP5 script, necesitas el Console Getopt Pear Package (la function getopt no sirve en Windows, en el siguiente php 5.3.0 parece ser que si)

necesitas pear? ejecuta go-pear.bat en el directorio de php5

c:\>pear install Console_Getopt

Windows Batch file:

:save this ehf.cmd on your %windir%
:set php-cli to your php.exe path
@set php-cli=c:\php5\php.exe
:set ehf script path
@set ehf=c:\develop\php\scripts\ehf.php
@%php-cli% %ehf% %1 %2 %3 %4

Script ehf.php:

 /* Script: Easy Host Fake
  * Author: Albertux (Alberto Isaac Ayala Esquivias)
  * WebSite: http://Albertux.AyalaSoft.com
  * FeedBack: <albertoi7@gmail.com>
  * License: GPLv3 (http://www.gnu.org/licenses/gpl.txt)
  * Note: you need Pear Package Console Getopt
  */
$ip_default = '127.0.0.1'; // default ip
$hosts_file = 'c:/windows/system32/drivers/etc/hosts'; // default hosts file
 
require_once 'Console/Getopt.php';
$options = Console_Getopt::getopt($_SERVER["argv"],"a:e:r:");
 
function about() {
echo "
Easy Host Fake (version 1.0.1) [2008-12-27]
 
Usage: ehf [OPTIONS]
 
Mandatory: \"-r\" or \"-e\" [host]
 
Options:
 
  -r [host] [redirect host to 127.0.0.1 (or other ip address)]
  -e [host] [erase host on hosts file]
  -a [ip address]
 
Examples:
 
  ewf -r google.com -a 192.168.1.1
  ewf -e google.com
 
More info [http://Albertux.AyalaSoft.com/2008/12/28/easy-host-fake-win32/]
";
}
 
function AddHost($host,$ip) {
	global $hosts_file;
	$handle = fopen($hosts_file,"a");
	fwrite($handle,"\r\n$ip\t$host\t# Easy Host Fake");
	fclose($handle);
}
 
function removeHost($host) {
	global $hosts_file;
	$handle = fopen($hosts_file, "r");
	$contents = fread($handle, filesize($hosts_file));
	fclose($handle);
	$pattern = '/\\r\\n(\d+)\.(\d+)\.(\d+)\.(\d+)\t'.$host.'\t# Easy Host Fake/';
	$replacement = "";
	$newcontents = preg_replace($pattern, $replacement, $contents);
	$handle = fopen($hosts_file,"w");
	fwrite($handle,$newcontents);
	fclose($handle);
}
 
function getValue($data,$var) {
	for ($i=0; $i<count($data[0]); $i++) {
		if ($var == $data[0][$i][0]) {
			break;
		}
	}
	return $data[0][$i][1];
}
 
if ($options->message) { about(); die(); }
 
$host = getValue($options,"r");
$ip = getValue($options,"a");
 
if (!$host) {
	$host = getValue($options,"e");
	if ($ip) { about(); die(); }
	if (!$host) { about(); die(); }
	removeHost($host); die();
}
 
if (!$host) { about(); die(); }
if (!$ip) { $ip = $ip_default; }
 
addHost($host,$ip);

Download php script + batch cmd

Nota: en Windows Vista tu necesitas algunos permisos en el archivo hosts, y recuerda que todos los navegadores cuentan con cache.

Categories: network, security, web, windows Tags: , , ,

Win32 Installers

domingo, 21 de diciembre de 2008 Albertux Sin comentarios

Win32 Installers

Sometimes you need to distribute your program to another computers one option is make a installer

Nullsoft Scriptable Installer System (WebSite)

You are Delphi/Pascal developer ?

Inno setup Compiler (WebSite)

You want quick and easy installer, without scripting language ?

Little Install Builder (WebSite)

If you are on Visual Studio you can use publish wizard on build menu.

Categories: windows Tags:

Instant Boot (ASRock Inc)

miércoles, 12 de noviembre de 2008 Albertux Sin comentarios

Instant Boot (ASRock Inc)

Instant Boot is a pretty cool product of ASRock Inc, you can boot on Windows Vista only in 4 seconds.

See the video:

Download (see the model of the motherboard).

Categories: hardware, windows Tags: ,

QEMU Emulator

sábado, 1 de noviembre de 2008 Albertux Sin comentarios

QEMU Emulator

QEMU is a great emulator, like VMware or VirtualBox you can use to manage many guest operating system on your computer of course you need a lot of RAM

Install on Debian:

apt-get install qemu
wget http://bellard.org/qemu/kqemu-1.3.0pre11.tar.gz
tar xvzf kqemu-1.3.0pre11.tar.gz
cd kqemu-1.3.0pre11
./configure
make
make install

To load kqemu on Windows:

net start kqemu

To load kqemu on GNU/Linux:

modprobe kqemu

Port redirection use the flag option “-redir” some examples:

-redir tcp:8000::80  # redirect host port 8000 to port 80 on the guest.
-redir tcp:22::22 # ssh server on the guest

Note: I have a little trouble to install kqemu.inf on Windows Vista Bussiness i need to download the setup file on “Accelerators” section on QEMU for Win32

Damn Small Linux is a light distro use old kernel but run very wheel on old computer systems, you can run on CD-Rom, USB or Embedded System (using QEMU emulator)

Some times you need test some software but you want to install on your personal computer system, emulate and test the software is the best solution

Categories: network, unix/linux, windows Tags: ,