Monday, December 6, 2010

How to install Whatsapp on iPad



The developer has stopped the support for iPad
But if you have jailbreak your iPad

You can first install 2.5.3 version in iPad, register it
and then upgrade to the latest version 2.5.11 or 2.5.12

Sunday, December 5, 2010

mytv.tvb.com live on Samsung Galaxy Tab

How to install debian on Samsung Galaxy Tab

Assume you have rooted the Samsung Galaxy Tab and want to install debian

The instruction of setting up debian in G1 is in saurik's site here http://www.saurik.com/id/10
But some of the information are outdated, as the rooting is very simple now and the busybox comes with one click z4root

z4root is here http://www.multiupload.com/EPKDWWLWD9

I like this method as the Debian system is installed in a standalone img file which can be copied to other Android phones.

(1) Download the Debain G1 image here
http://rapidshare.com/files/161776007/debian-armel-750.img.bz2

or here
http://www.multiupload.com/VUKS8LQ7EP

There is a ubuntu.img out there and is 2G in size (but trust me, running a graphical desktop via vnc is overkilling on mobile device). If you want shell access only, this debian.img is better.

(2) copy it to sdcard.
adb push debian-armel-750.img.bz2 /sdcard/

(3) su shell access to Tab

adb shell
su


(4) unzip the file in Tab. The image after unzip is 750M in size, so make sure you have enough space in sdcard.

cd /sdcard
busybox bunzip2 debian-armel-750.img.bz2
mv debian-armel-750.img debian.img


(5) setup mount and chroot

create and run this script in

cd /data/local
busybox vi startdeb.sh



startdeb.sh Select all
export kit=/sdcard
export mnt=/data/local/mnt
export TERM=linux
export HOME=/root
export PATH=$bin:/usr/bin:/usr/sbin:/bin:$PATH

busybox clear

busybox mkdir -p $mnt

busybox mount -o loop,noatime $kit/debian.img $mnt

busybox mount -t devpts devpts $mnt/dev/pts
busybox mount -t proc proc $mnt/proc
busybox mount -t sysfs sysfs $mnt/sys

busybox mkdir -p $mnt/mnt
busybox mkdir -p $mnt/mnt/sdcard $mnt/mnt/system
busybox mkdir -p $mnt/mnt/data $mnt/mnt/dev

busybox mount -o bind /sdcard $mnt/mnt/sdcard
busybox mount -o bind /system $mnt/mnt/system
busybox mount -o bind /data $mnt/mnt/data
busybox mount -o bind /dev $mnt/mnt/dev
busybox mount -t tmpfs tmpfs $mnt/tmp -o noatime,mode=1777

busybox chroot $mnt /bin/bash

#After exit command is executed clear it all up
echo " "

echo "Shutting down Debian........"

umount $mnt/dev/pts
umount $mnt/proc
umount $mnt/sys
umount $mnt/mnt/sdcard
umount $mnt/mnt/system
umount $mnt/mnt/data
umount $mnt/mnt/dev
umount $mnt/tmp
umount $mnt



run the startdeb.sh script

sh startdeb.sh



# now Tab should be in Debian System

(6) do some fixing and change root password and install OpenSSH and start it

rm -f /etc/mtab
ln -s /proc/mounts /etc/mtab
passwd root
apt-get update
apt-get install debian-keyring debian-archive-keyring
apt-get update
apt-get upgrade
apt-get install openssh-server openssh-client
/etc/init.d/ssh start


(7) If the default package source does not work, you can change this file /etc/apt/sources.list to

deb http://ftp.us.debian.org/debian lenny main


(8) Then you can ssh to your Tab by using ssh root@xxx.xxx.xxx.xxx after enable wifi in Tab, where xxx.xxx.xxx.xxx is the IP address of Tab.

(9) If you want to change the DNS server say to Google Public DNS

echo "nameserver 8.8.8.8" > /etc/resolv.conf
echo "nameserver 8.8.4.4" >> /etc/resolv.conf






Saturday, November 27, 2010

Windows Phone 7 Developer Unlock

Source http://www.chevronwp7.com/

Instruction

(1) Install this certificate in your Windows Phone 7 via IE : http://www.chevronwp7.com/cert

(2) Download and install this registration key in your Windows 7 OS http://walshie.me/PhoneRegAdd.reg

(3) Download and run this program http://walshie.me/ChevronWP7.exe in Windows 7 OS


Other Hacks
copy files to WP7 device in Windows Explorer
http://downloadsquad.switched.com/2010/11/20/copy-files-to-a-windows-phone-7-device-in-windows-explorer?icid=sphere_blogsmith_inpage_engadget

USB Tethering
http://www.engadget.com/2010/11/11/windows-phone-7-usb-tethering-uncovered-on-samsung-phones/

Thursday, November 25, 2010

Windows Phone 7 Developer Registration Step 2 Error

see here
http://forums.create.msdn.com/forums/t/66601.aspx

Error in Step 2 while registering
We are currently tracking an issue developers may experience while registering for App Hub where they receive an error including the following text:


We have detected an error while processing the page you were looking for.

· If you reside in Hong Kong, we are aware of this issue but do not have any workarounds available. We are investigating this and will update this announcement as we find more information.

Saturday, November 20, 2010

香港天氣及日曆 gadgets (windows 7)



http://www.multiupload.com/XH0PUOTGMT

Stock 3 gadget is here
http://gallery.live.com/liveitemdetail.aspx?bt=1&li=61b9dca8-214c-41bf-b972-b2050aeaab9c

Sunday, November 14, 2010

How to replace gnutar and gsed for Mac OS X

Install MacPorts

http://www.macports.org/

Install gnutar

sudo port install gnutar


Install gsed

sudo port install gsed


Replace tar and sed in Mac OS X


sudo mv /usr/bin/tar /usr/bin/darwintar
sudo ln -s /opt/local/bin/gnutar /usr/bin/tar

sudo mv /usr/bin/sed /usr/bin/darwinsed
sudo ln -s /opt/local/bin/gsed /usr/bin/sed


or you can build from source
http://prep.ai.mit.edu/pub/gnu/tar/tar-latest.tar.gz
http://prep.ai.mit.edu/pub/gnu/sed/sed-4.2.tar.gz
.
.
.

Sunday, November 7, 2010

iPA God

The so called iPA God is just using the developer's certificate to re-codesign the cracked app and install on non-jailbreaked iPhone.

Staring from iOS 4.0, provisioning profile and app can be distributed and installed via WebServer

You can simply add this in the WebServer and install the app via http


<a href="http://192.168.0.10/My_iPhone_Development_2010.mobileprovision">Install Provisioning Profile</a><br/>
<a href="itms-services://?action=download-manifest&url=http://192.168.0.10/MyApp.plist">Install MyApp</a>


The content of MYApp.plist is

MyApp.plist Select all

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>items</key>
<array>
<dict>
<key>assets</key>
<array>
<dict>
<key>kind</key>
<string>software-package</string>
<key>url</key>
<string>http://192.168.0.10/MyApp.ipa</string>
</dict>
</array>
<key>metadata</key>
<dict>
<key>bundle-identifier</key>
<string>com.yourcompany.YouApp</string>
<key>bundle-version</key>
<string>1.0</string>
<key>kind</key>
<string>software</string>
<key>title</key>
<string>MyAppName</string>
</dict>
</dict>
</array>
</dict>
</plist>

.
.

WhatsApp for iPad



The new version v2.5.11 doesn't work for iPad 3G

You have to install 2.5.3 then upgrade to 2.5.11

Sunday, October 17, 2010

Windows Phone 7 Emulator Hack

Windows Phone 7 Emulator Hack (Sept Version)

(1) Download the Windows Phone Developer Tools and install it in Windows (not for VMWare nor other Virtual Machine)

http://go.microsoft.com/fwlink/?LinkID=189554

(2) Download the Hacked Image to your Desktop
http://www.multiupload.com/TGBSSOXCO7

(3) Create a shortcut and with similar to this as (replace YOU as your username)
"C:\Program Files\Microsoft XDE\1.0\XDE.exe" "C:\Users\YOU\Desktop\WM70C1.en-US.unlocked.bin" /VMID {E575DA31-FC47-4766-853F-018D823B9EE6}

Programming Windows Phone 7 (pdf + source code)
http://www.charlespetzold.com/phone/






Tuesday, September 28, 2010

MyWi Not Initialized! Reboot ?

If you have installed the cracked version of MyWi and sometimes later you get the MyWi Not Initialized! message like below.



The easiest solution is here (do these steps in quick succession)

1. open miwi 1st time
2. when it asked to exit or reboot, click on exit 1st time
3. open mywi 2nd time
4. when it asked to exit or reboot, click on exit 2nd time
5. open mywi 3rd time
6. when it asked to exit or reboot, click on reboot

Once you have rebooted, now open mywi, and it should work.

Everytime you run into this problem, just repeat the steps above and it should work everytime .

Enjoy.

Sunday, June 20, 2010

How to download / upload data to Google App Engine for localhost

The appcfg.py --dump option is not working
with this error appcfg.py: error: no such option: --dump

Deprecated method (Code for Configuration) is used instead to upload_data / download_data to localhost app

Here is an example

(1) modify app.yaml and add this under handlers:
- url: /remote_api
script: $PYTHON_LIB/google/appengine/ext/remote_api/handler.py
login: admin


You have to restart the app after modifying app.yaml

(2) create this file : album_load.py

# album_loader.py
import datetime
from google.appengine.ext import db
from google.appengine.tools import bulkloader

class Album(db.Model):
artist = db.StringProperty()
title = db.StringProperty()
publication_date = db.DateProperty()
length_in_minutes = db.IntegerProperty()

class AlbumLoader(bulkloader.Loader):
def __init__(self):
bulkloader.Loader.__init__(self, 'Album',
[('title', str),
('artist', str),
('publication_date',
lambda x: datetime.datetime.strptime(x, '%m/%d/%Y').date()),
('length_in_minutes', int),
])

loaders = [AlbumLoader]


(3) prepare an upload file : album.csv

title1,artist1,1/1/2000,12
title2,artist2,1/1/2001,22
title3,artist3,1/1/2002,32


(3) Launch your app in localhost and upload using this command

appcfg.py upload_data --config_file=album_loader.py --application=yourappid --kind=Album --url=http://localhost:8080/remote_api --filename=album.csv


(4) check the table data in your Google App SDK console

(5) to download data create this file : album_exporter.py

# album_exporter.py
import datetime
from google.appengine.ext import db
from google.appengine.tools import bulkloader

class Album(db.Model):
artist = db.StringProperty()
title = db.StringProperty()
publication_date = db.DateProperty()
length_in_minutes = db.IntegerProperty()

class AlbumExporter(bulkloader.Exporter):
def __init__(self):
bulkloader.Exporter.__init__(self, 'Album',
[('title', str, None),
('artist', str, None),
('publication_date', str, None),
('length_in_minutes', int, None),
])

exporters = [AlbumExporter]


(6) use this command to download data
appcfg.py download_data --config_file=album_exporter.py --application=yourappid --kind=Album --url=http://localhost:8080/remote_api --filename=albumout.csv
.
.
.

Friday, June 18, 2010

Old versions of iTunes

iTunes 10.4 Download
Windows X86 http://appldnld.apple.com/iTunes10/041-0718.20110720.YXCZe/iTunesSetup.exe
Windows X64 http://appldnld.apple.com/iTunes10/041-0719.20110720.rE358/iTunes64Setup.exe
Mac OS X http://appldnld.apple.com/iTunes10/041-1988.20110720.Rt5Yp/iTunes10.4.dmg



iTunes 10.3.1 Download
Windows X86 http://appldnld.apple.com/iTunes10/041-1633.20110607.FvP5t/iTunesSetup.exe
Windows X64 http://appldnld.apple.com/iTunes10/041-1634.20110607.4EPY6/iTunes64Setup.exe
Mac OS X http://appldnld.apple.com/iTunes10/041-1632.20110607.SUch3/iTunes10.3.1.dmg



iTunes 10.2.2 Download
Windows X86 http://appldnld.apple.com/iTunes10/041-0988.20110501.CdEr4/iTunesSetup.exe
Windows X64 http://appldnld.apple.com/iTunes10/041-0989.20110501.Pr4tg/iTunes64Setup.exe
Mac OS X http://appldnld.apple.com/iTunes10/041-0533.20110418.AqP4r/iTunes10.2.2.dmg





iTunes for Windows x86
9.2 http://appldnld.apple.com/iTunes9/061-7656.20100616.ZTns2/iTunesSetup.exe
9.2.1 http://appldnld.apple.com/iTunes9/061-8602.20100719.Tnz92/iTunesSetup.exe
10.0 http://appldnld.apple.com/iTunes10/061-8246.20100901.Zxsew3/iTunesSetup.exe
10.0.1 http://appldnld.apple.com/iTunes10/061-9186.20100924.nbght/iTunesSetup.exe
10.1 http://appldnld.apple.com/iTunes10/061-9842.20101118.Bgyt6/iTunesSetup.exe
10.1.1 http://appldnld.apple.com/iTunes10/061-9926.20101215.XdsP6/iTunesSetup.exe
10.1.2 http://appldnld.apple.com/iTunes10/061-9992.20110127.WdzxP/iTunesSetup.exe
10.2 http://appldnld.apple.com/iTunes10/061-9638.20110302.Wnzse/iTunesSetup.exe
10.2.1 http://appldnld.apple.com/iTunes10/041-0471.20110308.Nzxs2/iTunesSetup.exe

iTunes for Windows x64
9.2 http://appldnld.apple.com/iTunes9/061-7657.20100616.92msz/iTunes64Setup.exe
9.2.1 http://appldnld.apple.com/iTunes9/061-8603.20100719.Dcfe4/iTunes64Setup.exe
10.0 http://appldnld.apple.com/iTunes10/061-8245.20100901.Pr4rg/iTunes64Setup.exe
10.0.1 http://appldnld.apple.com/iTunes10/061-9187.20100924.Bnhju/iTunes64Setup.exe
10.1 http://appldnld.apple.com/iTunes10/061-9843.20101118.Txdse/iTunes64Setup.exe
10.1.1 http://appldnld.apple.com/iTunes10/061-9927.20101215.Txsde/iTunes64Setup.exe
10.1.2 http://appldnld.apple.com/iTunes10/061-9993.20110127.Nju7Y/iTunes64Setup.exe
10.2 http://appldnld.apple.com/iTunes10/061-9639.20110302.XcKgt/iTunes64Setup.exe
10.2.1 http://appldnld.apple.com/iTunes10/041-0472.20110308.WnT2z/iTunes64Setup.exe


iTunes for Mac
9.2 http://appldnld.apple.com/iTunes9/061-8440.20100616.Tnzs2/iTunes9.2.dmg
9.2.1 http://appldnld.apple.com/iTunes9/061-8601.20100719.nhy5R/iTunes9.2.1.dmg
10.0 http://appldnld.apple.com/iTunes10/061-9183.20100902.X2ndX/iTunes10.dmg
10.0.1 http://appldnld.apple.com/iTunes10/061-9207.20100924.Nzse2/iTunes10.0.1.dmg
10.1 http://appldnld.apple.com/iTunes10/061-9530.20101112.MSakc/iTunes10.1.dmg
10.1.1 http://appldnld.apple.com/iTunes10/041-0027.20101215.AzsL3/iTunes10.1.1.dmg
10.1.2 http://appldnld.apple.com/iTunes10/061-9991.20110127.ZxsE3/iTunes10.1.2.dmg
10.2 http://appldnld.apple.com/iTunes10/061-9637.20110302.Tnz2t/iTunes10.2.dmg
10.2.1 http://appldnld.apple.com/iTunes10/041-0475.20110308.mAcaz/iTunes10.2.1.dmg




iTunes 9.2
http://appldnld.apple.com.edgesuite.net/content.info.apple.com/iTunes9/061-8440.20100616.Tnzs2/iTunes9.2.dmg

iTunes 9.1.1 (Mac OS 10.4.11 or later)
http://appldnld.apple.com.edgesuite.net/content.info.apple.com/iTunes9/061-8202.20100427.5vfkH/iTunes9.1.1.dmg

iTunes 9.1 for Mac
http://appldnld.apple.com.edgesuite.net/content.info.apple.com/iTunes9/061-7203.20100330.XswP8/iTunes9.1.dmg

iTunes 9.0.3 for Mac
http://appldnld.apple.com.edgesuite.net/content.info.apple.com/iTunes9/061-7752.20100201.Tz39N/iTunes9.0.3.dmg

iTunes 9.0 for Mac
http://appldnld.apple.com.edgesuite.net/content.info.apple.com/iTunes9/061-6350.20090909.tnzs2/iTunes9.dmg

iTunes 8.2.1 for Mac
http://appldnld.apple.com.edgesuite.net/content.info.apple.com/iTunes8/061-6715.20090715.cfR54/iTunes8.2.1.dmg



iTunes 9.2 for Windows 64 bit
http://appldnld.apple.com.edgesuite.net/content.info.apple.com/iTunes9/061-7657.20100616.92msz/iTunes64Setup.exe

iTunes 9.2 for Windows 32 bit
http://appldnld.apple.com.edgesuite.net/content.info.apple.com/iTunes9/061-7656.20100616.ZTns2/iTunesSetup.exe

iTunes 9.1.1 for Windows 64 bit (Windows Vista 64 bit, Windows 7 64 bit)
http://appldnld.apple.com.edgesuite.net/content.info.apple.com/iTunes9/061-8204.20100427.AEueJ/iTunes64Setup.exe


iTunes 9.1.1 for Windows 32 bit (Windows XP SP2, Vista)
http://appldnld.apple.com.edgesuite.net/content.info.apple.com/iTunes9/061-8203.20100427.1J2kd/iTunesSetup.exe

iTunes 9.1 for Windows
http://appldnld.apple.com.edgesuite.net/content.info.apple.com/iTunes9/061-7204.20100330.Cdr4T/iTunesSetup.exe

iTunes 9.0.3 for Windows
http://appldnld.apple.com.edgesuite.net/content.info.apple.com/iTunes9/061-7753.20100201.Jcv4r/iTunesSetup.exe

iTunes 9.0 for Windows
http://appldnld.apple.com.edgesuite.net/content.info.apple.com/iTunes9/061-6351.20090909.Tza9j/iTunesSetup.exe

iTunes 8.2.1 for Windows
http://appldnld.apple.com.edgesuite.net/content.info.apple.com/iTunes8/061-6717.20090715.XsE4R/iTunesSetup.exe
.
.
.

Sunday, May 2, 2010

Bluetooth Keyboard for iPad

Here are the shortcut keys that I discovered for the Bluetooth keyboard when using iPad

Command Z : Undo
Command Shift Z : Redo
Command A : Select All
Command X : Cut
Command C : Copy
Command V : Paste
Command Space : keyboard selection (if you have enabled multiple keyboards in iPad)
Command-delete : Delete to beginning of line
Control H : Delete
Control I : Tab
Control K : delete to end of line
Shift Arrow : Make Selection range
Option Arrow : advance / backward word
Command Arrow : Start / End of line or Top / Bottom
Eject button on the top right : hide /unhide soft keyboard for iPad (when in editing mode)
All the Brightness, playback and sound control function keys are working

Saturday, May 1, 2010

Snow Leopard Screenshots and Grab not working

Recently, I have upgraded from 10.5.x to to 10.6.2 and then 10.6.3 and the Screenshots (Cmd Shit 3 / Cmd Shift 4) and Grab app are not function properly. That is no images are generated.

The solution is to reinstall the
Mac OS X 10.6.2 Update (Combo)
http://support.apple.com/downloads/DL959/en_US/MacOSXUpdCombo10.6.2.dmg
or
Mac OS X 10.6.3 Update (Combo)
http://support.apple.com/downloads/DL1017/en_US/MacOSXUpdCombo10.6.3v1.1.dmg

Then these problems will be fixed.
.
.
.

Sunday, April 11, 2010

iPhone OS 4.0 beta 1 vfdecrypt key

4.0 beta 1 (8A230m)

Root Filesystem

iPhone 3G
0da2d3316d5ee7cd1858e4035e451387cd8156e97535fb09028859e68e5b7b39a6649552

iPhone 3GS
4fea9105d8445961cbeef29f06d93685af4b7f45a02eaf7f7cdc8f78784762df3f1072c7

iPod Touch 3G
382dee11b9d80387b16ac2030ee1e903b78d9743a31a18bcafc922b7921eca85ab0aebf7

iPod Touch 2G
d88fa434f6a8c50fd49cd0923879da5c3079c59c0e534cff521a9cecbcad48d84b4daef0


4.0 beta 2 (8A248c)

Root Filesystem

iPhone 3G
0da2d3316d5ee7cd1858e4035e451387cd8156e97535fb0902 8859e68e5b7b39a6649552

iPhone 3GS
62ea9bf9971e6c410231646f916f80330f9cbc1d1c585f0c03 dab6b6f7158dc0a9c5efaf

iPod Touch 3G
382dee11b9d80387b16ac2030ee1e903b78d9743a31a18bcaf c922b7921eca85ab0aebf7

iPod Touch 2G
d88fa434f6a8c50fd49cd0923879da5c3079c59c0e534cff52 1a9cecbcad48d84b4daef0

Saturday, April 10, 2010

Stanza 2.1 USB transfer epub file (no jailbreak required)

Download iPhone Explorer (Windows or Mac version)

http://www.iphone-explorer.com/

Choose /var/mobile/Media as root directory and create Stanza folder under DCIM directory

upload epub file to say

DCIM/Stanza/b.epub



1) Launch Stanza on your iPhone, and go to the "Get Books" tab.
2) Select the "Downloads" segment.
3) Tap the plus sign.
4) enter URL

file:///private/var/mobile/Media/DCIM/Stanza/b.epub

Then press Download button

Wednesday, March 31, 2010

Old versions of iTunes

Windows iTunes version 9.0.3
http://appldnld.apple.com.edgesuite.net/content.info.apple.com/iTunes9/061-7753.20100201.Jcv4r/iTunesSetup.exe

Windows iTunes version 8.2.1
http://appldnld.apple.com.edgesuite.net/content.info.apple.com/iTunes8/061-6717.20090715.XsE4R/iTunesSetup.exe

Mac iTunes version 9.0.3
http://appldnld.apple.com.edgesuite.net/content.info.apple.com/iTunes9/061-7752.20100201.Tz39N/iTunes9.0.3.dmg

Mac iTunes version 8.2.1
http://appldnld.apple.com.edgesuite.net/content.info.apple.com/iTunes8/061-6715.20090715.cfR54/iTunes8.2.1.dmg

Wednesday, February 24, 2010

Thursday, January 7, 2010

香港人支付寶增值方法

虛擬商品 / 小數目的話

(1) 香港買張中移動神州行手機充值卡 (序列號/卡號為17位,充值密碼為18位的全國通用充值卡)
(2) 支付寶內選擇[消费卡]充值及[话费充值卡]
(3) 選擇[充值卡面值]50元/100元 及填入 [充值卡号] (序列號/Serial Number) 及 [充值卡密码]

充值卡面值100元扣除服务费:5.00 元(费率:5%)



大數目的話

淘寶通過「支付寶」平台完成支付,
他們近年努力開拓香港業務。

目前支持香港、台灣、澳門地區通過Visa 3D驗證的Visa信用卡。
香港的部分,包括以下銀行:
BOCI(中銀香港)
Hang Seng(恆生銀行)
HSBC(香港匯豐銀行)
BEA(東亞銀行)
SCB(渣打銀行)
DBS(星展銀行)
ICBC(中國工商銀行亞洲)

服務費用及限額:
從2009年7月7日開始, 支付寶將收取3%的服務費(如發生退款,服務費按相同比例退還,但您需要承擔可能的資金損益,例如匯率波動、銀行收費等)。此服務費與VISA卡組織所確定的附加費用無關,是支付寶對用戶使用支付寶系統進行交易所收取的系統使用服務費。

溫馨提醒:
以下5種情況下不可以使用VISA付款:
1)淘寶以外的交易是不能使用外卡的
2)如運費是由賣家負責,請聯繫賣家在購買前把運費更改為“買家負責” 。
3)如使用了“合併付款”功能,visa暫時是不支持“合併付款” 。
4)虛擬商品是不能用VISA付款。
5)交易金額小於1元人民幣是不能使用外卡的。
.
.
.

Monday, January 4, 2010

Source code for ikee iPhone worm



http://pastie.org/693452

What I guess, the missing main.h should be something like this below:

main.h Select all

#include <sys/fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/time.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
#include <arpa/inet.h>
#include <syslog.h>
#include <errno.h>
#include <ifaddrs.h>
#include <string.h>

#define MAX_NUM 24
#define VULN_PASS "alpine"

void scanner(char *ipRange);
int scanHost(char* host);
int checkHost(char *host);
int runCommand(char* command, char *host);
int prunCommand(char* command, char *host);
int CopyFile(char* src, char* dst, char* host);
int ChangeOnBoot();
int KillSSHD();
int infectHost(char *host);
char *randHost(void);
int get_lock(void);
char *getAddrRange();
int tokenise (char input[], char *token[], char* spl);