.*\.(css|js|svg|css|svg|png|jpeg|jpg|gif|pdf|svg|md|ico|js|htm|html|txt|md|woff2|woff|webp|ttf|xml|doc|docx|bmp|mp3|mp4|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
| import smtplib | |
| def send_data(): | |
| gmail_user = 'email@gmail.com' | |
| gmail_password = 'password' # env_var | |
| # Create Email | |
| mail_from = gmail_user | |
| mail_to = "email@gmail.com" | |
| mail_subject = 'You have a massage' | |
| mail_message_body = 'Body \n' | |
| mail_message = 'From: '+ gmail_user +'\nTo: ' + mail_to + '\nSubject: You have a new massage\n'+mail_message_body+'\n\n' |
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 | |
| your_gitlab_profile=gitlab-example.com:username | |
| github_link=$1 | |
| folder_name=$(echo $github_link | awk -F'/' '{print $NF}' | rev | cut -c5- | rev) | |
| git clone $github_link $folder_name | |
| cd $folder_name | |
| rm -rf .git/ | |
| git init | |
| git add * | |
| git commit -m "Backup script" |
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
| function cleansoslogs() { | |
| ssh root@$1 -t "so-nsm-clear -y; sleep 1; so-elastic-clear -y; sleep 1; so-sensor-clean" | |
| } |
All BigBountyRecon queries without GUI:
# Google Dorking URL Opener
# https://gist.github.com/M507/79b35ffd1b135a15393d7dd625622b09
# ============================================================
# HOW TO RUN:
# 1. Open PowerShell
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
| using BITS = BITSReference1_5; | |
| namespace ConsoleApp2 | |
| { | |
| class Program | |
| { | |
| class BISTJobObject | |
| { | |
| static BITS.BackgroundCopyManager1_5 BITSManager; | |
| static BITS.GUID JobGUID; |
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
| yum groupinstall "Development Tools" -y | |
| yum install gcc glibc glibc-common gd gd-devel openssl -y | |
| yum install glibc-devel glibc-headers kernel-headers kernel-devel gnutls-devel -y | |
| cd /opt | |
| wget https://ftp.gnu.org/gnu/wget/wget-1.20.3.tar.gz | |
| ./configure | |
| make | |
| cd src/ | |
| cp wget /usr/bin/wget | |
| cd ~/ |
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
| @ECHO OFF | |
| C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -nologo -noProfile -NonInteractive -ExecutionPolicy bypass -File \\domain.com\sysvol\domain.com\Policies\{000000000000000000}\USER\Scripts\Logon\slack-auth.ps1 |
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
| $out = 'Info: '+ (whoami) + ' logged into ' + (hostname) | |
| $body = @( | |
| @{ | |
| text = $out | |
| } | |
| ) | |
| $JSON = $body | ConvertTo-Json | |
| [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 | |
| Invoke-RestMethod -Uri "[Webhook URL]" -Method Post -Body $JSON -ContentType "application/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/sh | |
| for value in arpwatch dhcpd dpinger ntpd openvpn syslogd unbound | |
| do | |
| pfSsh.php playback svc status $value | grep stopped | |
| if [ $? -eq 0 ] | |
| then | |
| out="Important alert from "`hostname`": service $value is down!" | |
| echo $out | |
| curl -X POST -H 'Content-type: application/json' [Webhook URL] --data "{\"text\": \"${out}\"}" | |
| fi |