Visualizzazione post con etichetta Fundamentals. Mostra tutti i post
Visualizzazione post con etichetta Fundamentals. Mostra tutti i post

domenica 13 aprile 2014

Wireshark - Lesson 1: The basics

Hi everybody,

welcome to this lesson, where I explain the basics of the software called: Wireshark. The Wireshark is a open-source sniffer or packet analyzer, that allows you to capture the packets pass on network but without sending any packet from the source. This method is called: promiscuous mode. In fact Wireshark is focused own on this concept that is: capture packets leaving any trace. The Wireshark can capture all things that pass on network (sometimes in fact you can probably capture packet from switch flooding, then from the vulnerability of switch). So, now that we clear this concept, launch Wireshark! The first time you run it, you find in front of this window:

This window is the main window where we can choose the interfaces to be analyzed. In figure I have nflog, nfqueue, dbus-system, enp9s0 (that is: ethernet card), any. For analyze the network packets we must click to: enp9s0 interface. Once this is done we see a window similar to this:

Welcome (tatan!) in the Wireshark capture window, are you happy? So, begin to know the windows and single functions. The Wireshark is powerful software of network analysis traffic and he looks to the bone a single network packet. But one thing at a time, start by the main toolbar, here we can find the options or choices that allows analyze the packet or save the captured packets and also other. The second toolbar, is dedicated to other function that we'll see hereafter. The filter option is enter some filters during the analysis. For example: if I want reduce the protocols and see only TCP packets on the packet list pane I enter in the text box the TCP, and as if by magic voilà the TCP packets are shown! But as mentioned earlier: one thing at a time. Now the next step is study the 'Packet List Pane' and 'Detail List Pane'.

  • PACKET LIST PANE
The 'Packet List' pane is the window that show the packets captured during the analysis. The figure below depicts the 'Packet List' pane:

Here this window has seven columns that each has its own specific role. Let's see better:

No. The number of the packet in the capture file. This number don't change because is a sequence of packet captured in that moment.
Time: Time is timestamp of the packet.
Source: The address where this packet is coming from.
Destination: The address where this packet is going to.
Protocol: The protocol name in a short (perhaps abbreviated) version.
Info: Additional information about the packet content.

Bye,

Tefnut.

lunedì 7 aprile 2014

Windows Registry fundamentals - Lesson 1

Hello everyone,

welcome to this lesson where we're going to explore the fundamentals of Windows Registry. The Microsoft Windows Registry has not changed for users that using a Windows 8, so that you can learn it without problems also that you use Windows 8. The registry in Windows operating systems has a very important role in our function. If we had a registry analyzer we could observe that all operations in Windows modify single or multiple key of registry. The registry has soul and heart of Windows, rember that for new future lessons. Well, after this little introduction, I'll say you that a registry have a hierarchical structure so represent in figure:





This figure represent other things and it's not really representing elements of registry, but the hierarchical structure is so it. The Windows Registry is as a big database, where data are stored. Data is such as: data settings, configuration files and so on. I recommend to new users of registry to work via Virtual Machine, why? Because if you damage with some modify the systems you can restore new Virtual Machine and new Windows XP or 7 or other, after various exercises on the Virtual Machine you can switch on real Microsoft Windows without a virtual world (also if I use for some operation use VirtualBox with Windows XP so if I do some damages I restore again and I try other ways. To set the points in this course we're going to see some topics of registry:


  • Learn keys and fundamentals of registry and it's structure
  • How we can backup a registry
  • How we can create a .reg file
  • How we can hacking the registry
  • Configure security of Windows with the registry key and other security topics. 
The main registry keys are: 


  • HKEY_CLASSES_ROOT (HKCR)
  • HKEY_CURRENT_USER (HKCU)
  • HKEY_LOCAL_MACHINE (HKLM)
  • HKEY_USERS (HKU)
  • HKEY_CURRENT_CONFIG (HKCC)
REGISTRY STRUCTURE:

The registry structure is similar at the filesystem of Windows. In the software called: REGEDIT there are different panes, the left pane that is a list of main registry keys and their subkeys. While the right pane has a differents things, it's divided into three sections. Those three section are:

  1. Name
  2. Type
  3. Data
Now let's see them in detail. First of all, the part 'Name' this column identify a name of key or value. Let's start with an obvious assumption that each value has a name. This name is reported here. We pass to the part 'Type' the value in addition to having a name also has a type. This type could have many values, REG_SZ is one of this. REG_SZ indicates that the variable called X contains a string value. While we can find other value called REG_DWORD. The REG_DWORD value can contains a dword value (that is 32 bit variable). Instead the column 'Data' can is null or empty or could contain a data. The Data field can be contain only value with a maximum values of 32,767 bytes also that in practice can be contain a limit of 2 KB. This for now is all, I hope that is all clear.

Bye,

Tefnut.