ferzip.com

Ti serve un programmatore sistemista freelance…contattami!

NETGEAR ReadyNAS, ip aggiuntivi con interfacce in bond

1) installare il plug-in http://www.readynas.com/?p=4203

2) accedere via ssh come root

3) modificare

vi /etc/network/interfaces

=============================== esempio =================
# This file is auto-generated. Do not modify!
auto lo
iface lo inet loopback

auto bond0
iface bond0 inet static
address 10.3.6.4
netmask 255.255.0.0
gateway 10.3.0.1

auto bond0:1
iface bond0:1 inet static
address 172.30.8.2
netmask 255.255.0.0
gateway 10.3.0.1

auto eth0
iface eth0 inet static
address 10.3.6.4
netmask 255.255.0.0
gateway 10.3.0.1

auto eth1
iface eth1 inet static
address 10.3.6.5
netmask 255.255.0.0
gateway 10.3.0.1

============================================================

4) riavviare il network
/etc/init.d/networking restart

5) bloccare il file in sola lettura
chattr +i /etc/network/interfaces

6) editare il file
/etc/rc2.d/S01readynas_startup
aggiungendo come ultima riga
/etc/init.d/networking restart

NB con questa modifica non sarà più possibile modificare le impostazione di rete da interfaccia web
ma bisogna accedere via ssh e dare
chattr -i /etc/network/interfaces
poi sarà di nuovo modificabile

share save 120 16 NETGEAR ReadyNAS, ip aggiuntivi con interfacce in bond

How to find open proxy

I wrote a simple shell script to find a open proxy, basicaly it analize the log of webserver , extract the source ip client and try if on this ip have a proxy( only some standard port 80,8080,3128).This script don’t have “memory” if in log find more than one istance of ip, retry the check every time.
Only the ip who running an open proxy is strored in a file call “result.log”, to run this script yun need only curl.
(continua…)

share save 120 16 How to find open proxy

Simple Network Scanner for UBUNTU

I have just write this simple network scanner, It working in VERY simple methot, it han’t any input parameter only output.
At first is check my IP, and execute an arping comand for all 254 ip of the subnet

(continua…)

share save 120 16 Simple Network Scanner for UBUNTU

easter eggs: Ubuntu e Debian – trucchi segreti

Questi easter eggs per alcuni sono già noti ma per molti sono dei trucchi nuovi per ubuntu / debian

(continua…)

share save 120 16 easter eggs: Ubuntu e Debian   trucchi segreti

How to configure Firefox for terminal server

Quando si installa firefox in ambiente di microsoft terminal server si ha la necessità impostare gli stessi parametri per tutti gli utenti e di renderlo più snello e performante, per farlo è molto semplice si fa solo con un file.

(continua…)

share save 120 16 How to configure Firefox for terminal server

Scaricare informazioni da facebook

Non tutti sanno ma facebook da qualche tempo permette di scaricare tutti i dati, post , stati, TUTTE LE FOTO i video, insomma tutto quello che è pubblicato su facebook in un unico file compresso, per farlo è molto semplice:
(continua…)

share save 120 16 Scaricare informazioni da facebook

Impostazioni di rete per windows da riga di comando

Spesso ci ha la necessità di cambiare spesso l’indirizzo ip di windows da fisso a dhcp o viceversa, in particolare con windows 7 ( seven ) o di XP, i metodi possono essere diversi, o via impostazioni della scheda di rete, o con utility che non permettono di esportare i profili di rete , o con dei semplici e condivisibili file bat.
(continua…)

share save 120 16 Impostazioni di rete per windows da riga di comando

Usare periferiche USB con QEMU

Sto facendo usando QEMU dal mio sistema Debian quando ho la necessita di attaccare una dispositivo USB all mia macchina virtuale, molto semplicemente passo il parametro “-usb” a qemu:

Prima identifico con il comando lsusb la periferica

lsusb
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 002: ID 413c:3016 Dell Computer Corp. Optical 5-Button Wheel Mouse
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 004: ID 0781:5151 SanDisk Corp. Cruzer Micro Flash Drive
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

e poi semplicemente passo i dati a qemu con i parametri necessari

sudo qemu /tmp/xp.img -std-vga -m 1024 -usb -usbdevice host:0781:5151

Per avere il pieno supporto all’usb bisogno avere l’accesso come root

share save 120 16 Usare periferiche USB con QEMU

Password protecting a folder/site with Nginx

You can protect site or parts of it with username and password with buil-in module ( HttpAuthBasicModule )
(continua…)

share save 120 16 Password protecting a folder/site with Nginx

Twitter XSS is coming!

Incredibile ma vero su twitter c’è la possibilità di fare del’injection, ecco alcuni esempi
(continua…)

share save 120 16 Twitter XSS is coming!