Client side Html Injection with firebug

As described in another article, you can use Client side html injection techniques basically for two reasons:

  • cheat on your friends
  • send variables

In this example we will send some vars to a php page predisposed in order to show all POST vars, then we will apply this technique to the ebay homepage to apply a filter to the search form.
Continue reading “Client side Html Injection with firebug”

(Visited 4,862 times, 1 visits today)

Reversed battery polarity smoked my Turnigy 9X

Short circuit smell and Embarrassment.
burned capacitor of turnigy 9x
I managed to invert the polarity of the li-fe battery of my turnigy 9X when the battery was at its maximum voltage. Continue reading “Reversed battery polarity smoked my Turnigy 9X”

(Visited 4,993 times, 1 visits today)

Shineisp Installation Log / mini How to

Shineisp is an italian open source WHM (Web Hosing Management) and we are going to give it a try. I recall i alredy installed it last year, but the machine had a poor hardware and shineisp is a greedy MVC phpmysql program. For this “instalfiguration” we assume we are on Debian Squeeze and we will cover the steps needed to get shineisp up and running in 10 minutes.

Continue reading “Shineisp Installation Log / mini How to”

(Visited 2,330 times, 1 visits today)

Raspberry video streaming server for keychain 808 with ffmpeg

Hi there,

I’m writing down some notes about

installing, configuring, testing an 808 Keychain Webcam #3

even if i think it can be appliable to several different models (if they can actually act as webcam).
Continue reading “Raspberry video streaming server for keychain 808 with ffmpeg”

(Visited 9,127 times, 1 visits today)

Multiwii MWC, Chinese 10DOF (codename GY-80) and Arduino Nano V.3: hooking and testing

 

This image shows how to connect the pro-mini to the gy-80Well, i just received my i2c sensors breakout board

Here it is what the Multiwii software configuration calls GY_80 or GY-80.
There is no brand, no model, no serial.
We know something just about single main components/chip: Continue reading “Multiwii MWC, Chinese 10DOF (codename GY-80) and Arduino Nano V.3: hooking and testing”

(Visited 19,813 times, 1 visits today)

Debian, Apache2, PHP5 AND GEOIP Logging

geolocalization apache ipHelo there! In these last days one client of mine asked me how to prevent non-italian visitors from seeing national ADS when they visit one or more websites.
The solution comes alog with builtin geoip functions in the php5-geoip package to be installed as usual using apt-get
After installed this package typing:
apt-get install php5-geoip

Now, what you have is a countries database, and if you want to be much more precise (as me for example) you can download a detailed Cities database typing the following set of commands:

cd /tmp
wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz
gunzip GeoLiteCity.dat.gz
sudo mv -v GeoLiteCity.dat /usr/share/GeoIP/GeoIPCity.dat

Now you own the entire planet cities database! 🙂

Let’s try it within a PHP web page: create a new file (or edit an existent one) and type:

print_r(geoip_record_by_name('php.net'));

It should return something like this:

Array
(
[country_code] => US
[country_code3] => USA
[country_name] => United States
[region] => CA
[city] => Sunnyvale
[postal_code] => 94089
[latitude] => 37.4249000549
[longitude] => -122.007400513
[dma_code] => 807
[area_code] => 408
)

Comments or questions are welcome, Also if you neew to setup a geo based service, now you know who could do it for you!

Cheers

(Visited 1,163 times, 1 visits today)