Journal de Benoit Breton

Aller au contenu | Aller au menu | Aller à la recherche

mardi, janvier 28 2014

Ajouter utilisateur avec droits Sudo.

Pour ajouter un compte utilisateur utiliser la commade :

sudo adduser NomUtilisateur

Puis répondre aux questions.

Pour ajouter le compte au group Admin

usermod -a -G admin NomUtilisateur

samedi, janvier 18 2014

Install ESXi 5.X on HP Microserver with 2GB memory

Boot the system from USB Stick with ESXi installer on it.

Once the installer welcome screen shows up, press alt+F1 to go to the first console (login prompt)

Login as root, no password.

  1. cd /usr/lib/vmware/weasel/util

There are a few files but the upgrade_precheck.py is of interest to us

  1. rm upgrade_precheck.pyc // (the compiled version) -
  1. mv upgrade_precheck.py upgrade_precheck.py.old // because the file can not be edited due to some immortal flags and lack of tools to remove these flags
  1. cp upgrade_precheck.py.old upgrade_precheck.py
  1. vi upgrader_precheck.py // then search for line that has ((1024 * 2 ) - 32)

Replace value of MEM_MIN_SIZE =(4 * 1024 -32) Size_MiB with something like this (1 * 1024 -32) and save (:w! in vi)

  1. ps -c | grep weas // find the PID
  1. kill -9 #### // where #### is the python PID

Return to the second console with installer (alt+F2) Continue as normal

jeudi, décembre 12 2013

HTTP Analyse avec tshark

La commande qui vas bien pour afficher les requettes HTTP avec tshark

/usr/local/bin/tshark -R "http.response or http.request" \ -T fields -E separator="|" \ -e frame.time_epoch \ -e ip.src \ -e tcp.srcport \ -e ip.dst \ -e tcp.dstport \ -e http.request.version \ -e http.request.method \ -e http.host \ -e http.request.uri \ -e http.user_agent \ -e http.response.code \ -e http.content_type \ -e http.content_length \ -e http.location \ -e http.referer \

la source

jeudi, décembre 5 2013

Hirschmann enable OSPF Routing

To enable OSPF routing on Hirschman L3P.

1°) Configure an interface with IP adress

Rx (interface 1/1) ip address 10.0.3.1 255.255.255.0 Rx (interface 1/1) routing Rx (interface 1/1) ip ospf Rx (interface 1/1) ip ospf areaid 0.0.0.0

2°) in global enable OSPF

Rx (config)# router ospf

Rx (config)# enable

3°) Defini ID for Ospf router

Rx (config)# router-id 9.1.1.1

Rx (config)# redistribute connected subnets

Cisco Air-CAP 1552E mesh to autonomous firmware update.

Download the Autonomous image from cisco , i used: c1520-k9w7-tar.152-2.JB.tar

Give your laptop a static IP (example below uses 10.0.0.2 /24)

Connect laptop directly to 1552 and have your TFTP server running

When the 1552 starts to boot, hit the escape key (not break). This will bring you to an " ap: " prompt.

Then do the following:

ap: format flash: (not an obligation)

ap: set IP_ADDR 10.0.0.1 (IP address of your AP)

ap: set NETMASK 255.255.255.0

ap: set DEFAULT_ROUTER 10.0.0.254 (If you have one)

ap: tftp_init

ap: ether_init

ap: tar -xtract tftp://10.1.1.2/c1520-k9w7-tar.152-2.JB.tar flash: (wait ....)

ap: set BOOT flash:/c1520-k9w7-tar.152-2.JB/c1520-k9w7-tar.152-2.JB

ap: boot

Your AP boot on autonomous firmware and you can now connect on http admin interface : http://10.0.0.1 with default login/password (Cisco/Cisco)

- page 1 de 117