Thursday, February 5, 2015

Script to Change IP addresses in Kali Linux constantly

Script to Change IP addresses in Kali Linux constantly

Everybody who works in IT know that you need to test the equipment you are going to deploy at the customer premises, so you use your virtual machine to change the IP address from static to dynamic to emulate customer environment.

After several days changing IP address to match the networks and firewalls, etc, etc I created my own scripts to do it, these scripts are simple and modify it what ever you want:

Location of my scripts:


The following files are copies of the Kali network configuration located at /etc/network/interfaces and put them in my /root/myscripts

interfaces-static     -- This is where I put my customer network config

interfaces-dhcp   -- This is the dhcp when I wan my virtual machine to connect to internet

So I modify the static and put my customer site configuration and send the file to /etc/network/interfaces now this require restart services, etc, etc, so I create two scripts one for static and one for dhcp and gave them chmod 777 to each one

Scripts to send the files to /etc/network/interfaces

./networking-static   - Please notice the script chance the interfaces-static to interfaces

./networking-dhcp     - Please notice the script chance the interfaces-dhcp to interfaces

So when I finish working just run ./networking-dhcp and now I can use my virtual machine what ever I wanted.

Do you want to practice your pentest skills, please sing up to

Wednesday, January 21, 2015

ITIL Process

ITIL 2011 Process

  • Service Strategy
Objective: This process start an assessment what the customer needs and the market, then determine what services an IT organization will offer. The ultimate goal is to make to any IT company or organization to act in a strategic manner.

  • Service Design
Objective: This process focus in design new services, design the changes in existing services or improve them.

  • Service Transition
Objective: Build and deploy services designed for Service Design state, also make sure the changes in the services are carried out in a coordinate way without negative impact the business.

  • Service Operation
Objective: This is the day to day activity, to make sure the IT services are working effectively and efficiently. This include any user request, fixing problems and any failures. Also this include any operations task in the IT environment.

  • Continual Service Improvements - CSI
Objectives: This focus and continually improve the effectiveness and efficiency of the IT process and services, this process is continual.

Tuesday, December 30, 2014

Set static IP address Kali

Sometimes you need to configure your Kali Linux virtual machine with static IP address:

1. Go to /etc/network

2. nano interfaces

Now you will find the following text in the file:

#The primary network interface
allow-hotplug eth0
iface eth0 inet dhcp

3. Because this is temporary and will comment the dhcp part and set the static IP address:

# The primary network interface
allow-hotplug eth0
#iface eth0 inet dhcp

# Temp Config
iface eth0 inet static

Notice I put in read where I set the difference and type the new ip address I want.

4. Lets restart the service:

service networking restart

5. Check the new IP address with ifconfig command.

Do you want to learn more about security and how to test your network security, please go to:

Thursday, December 25, 2014

Security Algorithms for CISSP

Symmetric and Asymmetric algorithms to remember for CISSP:


Data encryption Standard (DES)
Triple DES (3DES)
Advanced Encryption Standard (AES)


Rivest, Shamir and Adleman (RSA)
Elliptic Curve Cryptosystem (ECC)
Digital Signature Algorithm (DSA)

Tuesday, December 16, 2014

Security Models CISSP

Points to review for CISSP exam, I took some notes from the Eleventh Hours (Eric Conrad), please read that book, this is just some points to remember, no explanation:

Bell-LaPadula Model

Focus: Maintain confidentiality of objects.

Mean: Not allowing users at a lower security levels to access objects in a different level or superior level.


  • Simple Security Property: no read up
  • Security Property: no write down
  • Strong Tranquility Property: security level will not change while the system is operating.
  • Weak Tranquility Property: security labels will not change in a  away that conflicts with define security properties

Lattice-based access controls

For every relationship between subjects and objects they set defined upper and lower access limit inside the system.

This depend of the need of the subjects, the label of the object and the role the subject has been assigned

Biba Model

The militaries focus in confidentiality for that reason Bell-LaPadula works fine, for business integrity is VERY important, Biba address this.


  • Simple Integrity Axiom: no read down. This protects integrity by preventing bad information from moving up from lower integrity levels
  • * Integrity Axiom: no write up: This protect integrity by preventing bad information from moving up to higher levels.



This is a real world integrity model that protects integrity by requiring subjects to access objects via programs.

Clark-Wilson use two primary concepts:

  1. Well formed transaction
  2. Separation of duties
This model implement Integrity-monitoring rules and integrity-preserving rules.

Also use the Access Tripe rule

Chinese Wall Model (Brewer-Nash)

This is designed to avoid conflicts of interest:


Do you want to learn more about security and how to test your network security, please go to:

Monday, December 15, 2014

Windows updates failing to search updates

You will find very often from many forums to check services, firewall, etc, etc. Normally this always works for me:

From command prompt stop the services (just copy it):

net stop wuauserv
net stop Cryptsvc

Delete the following folders



Start the services with command prompt:

net start wuauserv
net start Cryptsvc

Restart the machine and then check for updates.

 Do you want to learn more about security and how to test your network security, please go to:

Virtual Machine losing connection Hyper-v 2012 with HP servers

Some virtual machines lose connection with the physical network or the virtual switch lose connection with the physical network, after you unplug the cable and plug it backup the virtual machine reconnect o after you reboot the host server

It happen to me with ProLiant DL360 Gen9 and ProLiant DL385p Gen8

After a lot of testing and research the only way at this moment is to run a command in power shell to sidable VMQ:

Get-NetAdapterVmq | Disable-NetAdapterVmq

This problem I got it with and without full updates., also I updated the HP driver for the network interface and still getting the problem