This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| for i in {1..30} | |
| do | |
| domain="ww$i.propodsmax.co" | |
| dns=$(curl -s "https://beta.digdns.com/api/1.0/getDNS.json?type=1&query=$domain" | awk -F "ip" {'print $2'} | awk -F '"' {'print $3'}) | |
| echo $domain - $dns | |
| done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| licenseKey=$1 | |
| string="not validate your key" | |
| response=$(curl --location --request POST -s 'https://offlineupdate.alienvault.com/cgi-bin/auth' \ | |
| --header 'Content-Type: application/x-www-form-urlencoded' \ | |
| --data-urlencode 'next=/files/md5.txt' \ | |
| --data-urlencode 'key='$licenseKey) | |
| #echo $response | |
| #echo $string | |
| if [[ "$response" == *"$string"* ]]; then | |
| echo "INVALID" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #SingleInstance, Force | |
| Screen_X := Floor(A_ScreenWidth / 3) ;- 2 | |
| Screen_Y := Floor(A_ScreenHeight / 3) | |
| ;Msgbox % Screen_X | |
| GUI1_X := 0 | |
| GUI1_Y := 0 | |
| GUI1_H := Screen_Y |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $conn = mysqli_connect($db_host, $db_user, $db_pwd, $db_name); | |
| function mysql_query($query){ | |
| global $conn; | |
| return mysqli_query($conn, $query); | |
| } | |
| function mysql_fetch_assoc($query){ | |
| global $conn; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Ron Egli / github.com/smugzombie | |
| # A simple script used to update WSL Ubuntu with host file entries you may not want Windows to have access to | |
| # place a .hosts file in the same working dir as the script | |
| # - it should be formatted like a hosts file as to not break your host resolution | |
| # Version 1.0 | |
| rootcheck () { | |
| # A simple check to force sudo if not already root user. If unable quit. | |
| if [ $(id -u) != "0" ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Simple script to parse a site name and site domain from a Liquid Web Wordpress Admin Page | |
| // Ron Egli - github.com/smugzombie | |
| var domainArray = document.getElementsByClassName("domain-details") | |
| var sites = [] | |
| for(i=0; i < domainArray.length; i ++){ | |
| site_name = document.getElementsByClassName("domain-details")[i].children[0].innerText | |
| site_domain = document.getElementsByClassName("domain-details")[i].children[1].children[0].children[1].innerText |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| function sendmailgun($to,$toname,$mailfromname,$mailfrom,$subject,$html,$text,$tag,$replyto,$cc="",$attachments=""){ | |
| global $CONFIG; | |
| define('MAILGUN_URL', 'https://api.mailgun.net/v3/'.$CONFIG['mailgun']['domain']); | |
| define('MAILGUN_KEY', $CONFIG['mailgun']['apikey']); | |
| $array_data = array( | |
| 'from'=> $mailfromname .'<'.$mailfrom.'>', | |
| 'to'=>$toname.'<'.$to.'>', | |
| 'subject'=>$subject, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/python3 | |
| import json | |
| # Ron Egli | |
| # v0.4.1 | |
| # Quick and dirty script used to Pull all rules that have a specific IP defined to compare against the rules of another specific IP | |
| # aws ec2 describe-security-groups > SecGroups.json | |
| # View in table: python3 dirtysecgroup.py | column -t -s, | less -S | |
| with open('SecGroups.json', 'r') as reader: | |
| SecGroups = reader.read() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #! /usr/bin/python | |
| # sendmail.py - Utilizes Authenticated SMTP Relay to send mail | |
| # Ron Egli - github.com/smugzombie | |
| # Version 1.0 | |
| import smtplib | |
| import argparse | |
| import HTMLParser | |
| import json |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Randomword.sh | |
| # Ron Egli - github.com/smugzombie | |
| WORDFILE=/usr/share/dict/words | |
| WORD= | |
| VALID=0 | |
| function randomword { | |
| RANDOM=$(date +%s%N); | |
| # echo $RANDOM |