Tuesday, December 31, 2013

aMule for Puppy linux

These packages are tested with slacko 5.6 puppy linux and precise 5.7.1 puppy linux and Wary 5.5 puppy linux.

http://slackware.cs.utah.edu/pub/slackware/slackware-14.0/slackware/d/binutils-2.22.52.0.2-i486-2.txz
http://slackware.cs.utah.edu/pub/slackware/slackware-14.0/slackware/l/libpng-1.4.12-i486-1.txz needed only for precise and wary
http://slackware.cs.utah.edu/pub/slackware/slackware-14.0/slackware/l/libjpeg-v8a-i486-1.txz needed only for wary puppy
http://slackware.cs.utah.edu/pub/slackware/slackware-14.0/slackware/d/gcc-g++-4.7.1-i486-1.txz needed only for wary puppy
http://slackware.cs.utah.edu/pub/slackware/slackware-14.0/slackware/l/glibc-2.15-i486-7.txz needed only for wary puppy

To automatically get job done install
http://slackware.cs.utah.edu/pub/slackware/slackware-14.0/slackware/a/pkgtools-14.0-noarch-2.tgz
Then run
wget http://slackware.cs.utah.edu/pub/slackware/slackware-14.0/slackware/d/binutils-2.22.52.0.2-i486-2.txz
installpkg binutils-2.22.52.0.2-i486-2.txz
wget http://slackware.cs.utah.edu/pub/slackware/slackware-14.0/slackware/d/gcc-g++-4.7.1-i486-1.txz
installpkg gcc-g++-4.7.1-i486-1.txz
wget http://slackware.cs.utah.edu/pub/slackware/slackware-14.0/slackware/l/glibc-2.15-i486-7.txz
installpkg glibc-2.15-i486-7.txz
wget http://slackware.cs.utah.edu/pub/slackware/slackware-14.0/slackware/l/libjpeg-v8a-i486-1.txz
installpkg libjpeg-v8a-i486-1.txz
wget http://slackware.cs.utah.edu/pub/slackware/slackware-14.0/slackware/l/libpng-1.4.12-i486-1.txz
installpkg libpng-1.4.12-i486-1.txz
installpkg libupnp-1.6.17-i486-1_SBo.tgz
installpkg cryptopp-5.6.1-i486-2_SBo.tgz
installpkg wxGTK-2.8.12-i486-3_SBo.tgz
installpkg aMule-2.3.1-i486-1_SBo.tgz
Puppy linux mirror
https://drive.google.com/folderview?id=0Bw6O2bpd3mobdzBZcTF1TS1NOHc&usp=sharing

Sunday, December 29, 2013

Sunday, December 22, 2013

Friday, December 20, 2013

Install Python2 with mechanize and BeautifulSoup module for windows

Go to python.org and grab latest Python2 installer for windows

Or use exact file for this tutorial
http://www.python.org/ftp/python/2.7.6/python-2.7.6.msi
ac54e14f7ba180253b9bae6635d822ea
c5d71f339f7edd70ecd54b50e97356191347d355

Download mechanize module:
http://pypi.python.org/packages/source/m/mechanize/mechanize-0.2.5.zip
a497ad4e875f7506ffcf8ad3ada4c2fc
541a840abe38d11a9c3c796c4173f14fd24b45f7

Download BeautifulSoup module:
http://www.crummy.com/software/BeautifulSoup/bs4/download/4.3/beautifulsoup4-4.3.1.tar.gz
508095f2784c64114e06856edc1dafed
59db0ac4c38f44111bfd5c2e642753b9dd52b75f

Download files with python mechanize

When you open http://www.superantispyware.com/portablescannertech.html
And click on the big red button..
It gets redirected to http://www.superantispyware.com/sasportable.php
Which detects web browser existence and then generates random download link which only is alive few minutes.

Somehow wget can not ask the php file to retrieve download link. How sad.

There is possibility to use python together with mechanize module which works like command line web browser

I have created portable python version with mechanize module
https://dl.dropboxusercontent.com/u/93474209/python2-portable-with-mechanize.7z
mirror: https://drive.google.com/file/d/0BxmEiwnrWfmmSkRuSDdPNnpGY28/edit?usp=sharing
dedd679c505cbe6946f5b9439be93ee0
9fbdcef0f05f7f2a6c72dd5835910e323bd96f29

However to automatically download portable version of superantispyware you can use python with mechanize module.

And here is the code you need to get portable superantispyware version:
get-sas-portable.py
from mechanize import Browser
br = Browser()

br.set_handle_robots( False )
br.addheaders = [('User-agent', 'Firefox')]

f = br.retrieve('http://www.superantispyware.com/sasportable.php',"portablescanner.exe")[0]
To implement this in windows batch file you must use
python.exe get-sas-portable.py

Create portable python2 with mechanize

This will create portable version of python2 together with mechanize module.
Later you can call python.exe with python program.
Finally this will let you embed python code in windows batch file. Kind of.

Download portable python installer at http://portablepython.com/
Here is exact version for tutorial:
https://docs.google.com/file/d/0BxmEiwnrWfmmVE9qd0JwdndFalU/edit
8e8f41cefa8fc2ce32b16638f3cc330e
deb49e5d9a82f192eaab1e6786156fc6a5368c03

Download mechanize module at https://pypi.python.org/pypi/mechanize/
or use file in just the file in tutorial
http://pypi.python.org/packages/source/m/mechanize/mechanize-0.2.5.zip
a497ad4e875f7506ffcf8ad3ada4c2fc
541a840abe38d11a9c3c796c4173f14fd24b45f7

Install just the core files from Python portable installer

From mechanize-0.2.5.zip archive select only mechanize directory
and extract it to Lib\site-packages in python portable directory

Here is the result
https://drive.google.com/file/d/0BxmEiwnrWfmmSkRuSDdPNnpGY28/edit?usp=sharing

Thursday, December 19, 2013

Query Alexa traffic rank, save history

Based on my first alexa rank report i create another one with auto save history function.
+ This will output only global ranks.
@echo off
set path=%path%;%~dp0
set site=catonrug.net
cls
for %%g in (^
catonrug.net ^
opensourcepack.blogspot.com ^
raymond.cc ^
maketecheasier.com ^
makeuseof.com) do (
for /f "tokens=*" %%f in ('^
wget -qO- http://www.alexa.com/siteinfo/%%g#trafficstats ^|
grep "Global.*metrics-data align-vmiddle" ^|
sed "s/\d034>\|<\//\n/g" ^|
grep "^[0-9,]"') do (
if not exist "%userprofile%\.alexa\%%g" md "%userprofile%\.alexa\%%g" 
for /f "tokens=*" %%d in ('"%~dp0date.exe" +%%Y-%%m-%%d') do (
if not exist "%userprofile%\.alexa\%%g\%%d.log" (
echo %%d %%g %%f> "%userprofile%\.alexa\%%g\%%d.log"
)
)
)
for /f "tokens=*" %%h in ('dir /b "%userprofile%\.alexa\%%g\"') do (
type "%userprofile%\.alexa\%%g\%%h"
)
echo.
)
pause
This can be created as scheduled task per day.
To remove program data delete %userprofile%\.alexa directory.

Files to successful run the application:
http://gnu.catonrug.net/wget.exe
http://gnu.catonrug.net/awk.exe
http://gnu.catonrug.net/grep.exe
http://gnu.catonrug.net/sed.exe
http://gnu.catonrug.net/libiconv2.dll
http://gnu.catonrug.net/libintl3.dll
http://gnu.catonrug.net/regex2.dll
http://gnu.catonrug.net/date.exe

Screenshot (showing only one day):

Wednesday, December 18, 2013

Firefox remote silent install

Download Firefox setup at
https://www.mozilla.org/en-US/firefox/all/

Rename firefox setup file to something like firefox.exe

Copy this firefox.exe to remote machine
for example place it on \\remote-machine\c$\install

Extract psexec.exe from http://live.sysinternals.com/Tools/psexec.exe

After you get psexec.exe. Move the file to your local %systemroot%\System32

Open windows command prompt in "Run as administrator" mode

Launch the command
psexec \\remote-machine c:\install\firefox.exe /S
Accept EULA
You can also skip the EULA screen with
psexec /accepteula \\remote-machine c:\install\firefox.exe /S
Finally you got output
If you got error code 0 then the Firefox is successfully installed on remote machine

Blog Archive