Skip to content

Instantly share code, notes, and snippets.

@yehgdotnet
yehgdotnet / godnslookup.go
Created September 28, 2020 04:48
godnslookup.go
package main
import (
"bufio"
"fmt"
"log"
"os"
"path/filepath"
"time"
"net"
@yehgdotnet
yehgdotnet / goscreenshot.go
Created September 26, 2020 14:49
goscreenshot.go
//https://golangcode.com/headless-chrome-screenshot/
package main
import (
"context"
"io/ioutil"
"log"
"github.com/chromedp/cdproto/page"
@yehgdotnet
yehgdotnet / randomizeip.sh
Created September 25, 2020 14:56
Randomize Hostname and Renew IP
#!/bin/bash
echo +++++++++++++++++++++++++++++++++++++++++
echo Randomize Hostname and Renew IP
echo by Aung Khant, http://yehg.net
echo +++++++++++++++++++++++++++++++++++++++++
echo
########################################################
sleep 1
@yehgdotnet
yehgdotnet / recordlookup.go
Last active September 26, 2020 06:39
recordlookup.go
package main
import (
"bufio"
"fmt"
"log"
"os"
"strings"
"regexp"
)
@yehgdotnet
yehgdotnet / process-file.py2
Created August 26, 2020 11:31
python: Run specific command on file content line by line
#
# Run specific command on file content line by line
# Coded by Myo Soe
#
#
import sys, getopt, os
def main(argv):
@yehgdotnet
yehgdotnet / notify.py
Created August 26, 2020 06:41
Python 2 Mac OS Notification
#!/usr/bin/env python
from Foundation import NSUserNotification
from Foundation import NSUserNotificationCenter
from Foundation import NSUserNotificationDefaultSoundName
from optparse import OptionParser
def main():
parser = OptionParser(usage='%prog -t TITLE -m MESSAGE')
@yehgdotnet
yehgdotnet / quote-email-sign.au3
Created August 25, 2020 14:30
AutoIT Quote of the Day Email Signature
#cs ----------------------------------------------------------------------------
AutoIt Version: 3.3.8.1
Author: myName
Script Function:
Template AutoIt script.
#ce ----------------------------------------------------------------------------
@yehgdotnet
yehgdotnet / feed-reader.au3
Last active August 25, 2020 14:30
AutoIT Feed Reader
Local $feed_file = "theregister.xml"
Local $hDownload = InetGet ( "http://www.theregister.co.uk/security/headlines.atom" , $feed_file )
Local $file = FileOpen($feed_file, 0)
Global $security_feeds = ""
Global $counter = 0
; Check if file opened for reading OK
If $file = -1 Then
@yehgdotnet
yehgdotnet / hourlynotification.scpt
Created August 24, 2020 15:31
AppleScript Hourly Notification
set Dummy to ""
set HourTimer to 1
repeat while Dummy = ""
display notification "[Your Notification]"
delay 3600 * HourTimer
end repeat
@yehgdotnet
yehgdotnet / recon-by-mentor.sh
Created August 16, 2020 16:57
CyberMentor's Recon script - https://pastebin.com/raw/MhE6zXVt by Heath Adams
#!/bin/bash
url=$1
if [ ! -d "$url" ];then
mkdir $url
fi
if [ ! -d "$url/recon" ];then
mkdir $url/recon
fi
# if [ ! -d '$url/recon/eyewitness' ];then
# mkdir $url/recon/eyewitness