Skip to content

Instantly share code, notes, and snippets.

@AyoubOuarrak
AyoubOuarrak / DNSLookup.py
Last active August 29, 2015 14:08
dns lookup
#Author : Ouarrak Ayoub
#!/usr/bin/python
import socket
import sys
def isInt(str):
try:
int(str)
@AyoubOuarrak
AyoubOuarrak / DNSLookup.cpp
Last active May 13, 2016 19:29
dns lookup
// Author : Ouarrak Ayoub
#include <netinet/in.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <arpa/inet.h>
#include <iostream>
#include <netdb.h>
#include <cstring>
#include <string>
#!/bin/bash
url="http://cercauniversita.cineca.it/php5/docenti/vis_docenti.php"
for area in 01 02 03 04 05 06 07 08 09 10 11 12 13 14
do
echo "[ downloading area$area ]"
wget -q --post-data "area=$area&\
cognome=&\
conferma=2&\