Tag: info

Brute-force, DNS, Enumeration

Enumerate DNS info about domains

DNSenum is a pentesting cool created to enumerate DNS info about domains. The purpose of Dnsenum is to gather as much information as possible about a domain. The program currently performs the following operations: 1) Get the host’s addresses (A record). 2) Get the namservers (threaded). 3) Get the MX record (threaded). 4) Perform axfr …

C#

How to drag information from a DataGridView control

Let’s see how we can drag information from a DataGridView control in C#. We need to handle two events, MouseMove and MouseDown. private Rectangle dragbox; private int DragSelectedRow;   private void dgvc_MouseMove(object sender, MouseEventArgs e) { if ((e.Button & MouseButtons.Left) == MouseButtons.Left) { if (dragbox != Rectangle.Empty && !dragbox.Contains(e.X, e.Y)) { DragDropEffects dropEffect = dgvc.DoDragDrop( …

C#

Get USB information in C#

We will see how we can retrieve various information about usb devices in C#. We need the class ManagementObjectSearcher and Win32_DiskDrive class. To use this class we have to add a reference to System.Management namespace. and now.. the interesting part: 1 2 3 4 5 6 7 8 9 10 ManagementObjectSearcher theSearcher = new ManagementObjectSearcher("SELECT …