Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env bash
res1=$(date +%s.%N)
FNAME=$(date +%s)
#OUTPUT="$(dig "$1")"
#WHOIS="$(whois "$1")"
dig "$1" > /tmp/investigate/$FNAME_dig.txt &
whois "$1" > /tmp/investigate/$FNAME_whois.txt &
wait
#!/usr/bin/env bash
res1=$(date +%s.%N)
OUTPUT="$(dig "$1")" &
WHOIS="$(whois "$1")" &
wait
echo "<pre>"
@mnathani
mnathani / gist:1489c52641f14fc976cfef9a4cd82f46
Created August 27, 2017 05:38
Multiple scripts not working
OUTPUT="$(dig $1)" &
WHOIS="$(whois $1)" &
wait
echo "<pre>"
echo "$OUTPUT"
echo "</pre>"
echo "Whois Output for" $1
echo "<pre>"
#!/usr/bin/env bash
OUTPUT="$(dig '$1')"
echo "<pre>"
echo "$OUTPUT"
echo "</pre>"
@mnathani
mnathani / gist:218d924ba5269e1d8510d7e9383a3a0a
Created August 27, 2017 05:10
Works, but without Variable
#!/usr/bin/env bash
echo "<pre>"
dig '$1'
echo "</pre>"
<?php
$time = microtime();
$time = explode(' ', $time);
$time = $time[1] + $time[0];
$start = $time;
if(isset( $_GET["Domain"])){
$domain=$_GET["Domain"];
#!/usr/bin/env bash
echo "test"
echo "<pre>"
echo `dig $1`
echo "</pre>"
CREATE TABLE `gmf_commentmeta` (
`meta_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`comment_id` bigint(20) unsigned NOT NULL,
`meta_key` varchar(600) DEFAULT NULL,
`meta_value` longtext DEFAULT NULL,
PRIMARY KEY `PRIMARY` (`meta_id`) USING BTREE,
KEY `comment_id` (`comment_id`) USING BTREE,
KEY `meta_key` (`meta_key`) USING BTREE
) ENGINE=InnoDB ROW_FORMAT = COMPACT
MySQL said: Documentation
#platform=x86, AMD64, or Intel EM64T
#version=DEVEL
# Install OS instead of upgrade
install
eula --agreed
reboot
url --url="http://mirror.centos.org/centos/7/os/x86_64"
method="http://mirror.centos.org/centos/7/os/x86_64"
# Keyboard layouts
keyboard 'us'
@mnathani
mnathani / gist:b2c682a497406cd765b068134263468a
Created July 25, 2017 02:42
IPv6 /etc/network/interfaces
root@water:~# cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface