Skip to content

Instantly share code, notes, and snippets.

Avatar

Myo Soe (aka Aung Khant) yehgdotnet

View GitHub Profile
@yehgdotnet
yehgdotnet / recordlookup.go
Last active Sep 26, 2020
recordlookup.go
View recordlookup.go
package main
import (
"bufio"
"fmt"
"log"
"os"
"strings"
"regexp"
)
@yehgdotnet
yehgdotnet / process-file.py2
Created Aug 26, 2020
python: Run specific command on file content line by line
View process-file.py2
#
# 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 Aug 26, 2020
Python 2 Mac OS Notification
View notify.py
#!/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 Aug 25, 2020
AutoIT Quote of the Day Email Signature
View quote-email-sign.au3
#cs ----------------------------------------------------------------------------
AutoIt Version: 3.3.8.1
Author: myName
Script Function:
Template AutoIt script.
#ce ----------------------------------------------------------------------------
@yehgdotnet
yehgdotnet / feed-reader.au3
Last active Aug 25, 2020
AutoIT Feed Reader
View feed-reader.au3
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 Aug 24, 2020
AppleScript Hourly Notification
View hourlynotification.scpt
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 Aug 16, 2020
CyberMentor's Recon script - https://pastebin.com/raw/MhE6zXVt by Heath Adams
View recon-by-mentor.sh
#!/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
@yehgdotnet
yehgdotnet / smbexec.py
Created Aug 11, 2020
smbexec.py with port 443 allowed
View smbexec.py
#!/usr/bin/env python
# SECUREAUTH LABS. Copyright 2018 SecureAuth Corporation. All rights reserved.
#
# This software is provided under under a slightly modified version
# of the Apache Software License. See the accompanying LICENSE file
# for more information.
#
# A similar approach to psexec w/o using RemComSvc. The technique is described here
# https://www.optiv.com/blog/owning-computers-without-shell-access
# Our implementation goes one step further, instantiating a local smbserver to receive the
@yehgdotnet
yehgdotnet / read-ip-from-file.go
Created Aug 2, 2020
Golang Extract IP from file (raw.txt)
View read-ip-from-file.go
package main
import (
"fmt"
"regexp"
"io/ioutil"
"log"
)
func main() {
View gist:d745d23169d73f14ecf5fbf31f47d23c
<script>
var original_url = window.location.toString();
var https_url = original_url.replace("http://","https://");
if (window.location.toString().indexOf("http://")==0){
location.replace(https_url);
}
</script>