This file contains 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 | |
#its hackthebox invite code script | |
# parse your encrypted code after with help of curl | |
# example : python hackthebox.py 'encrypted_code' | |
import base64 | |
import sys | |
s = sys.argv[1] | |
base = base64.b64decode(s + '=' * (-len(s)%4)) | |
print('This is your hackthebox invite code : ',base) |
This file contains 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 | |
#excel_checker.py ->Script will read your excel file | |
import sys | |
import openpyxl | |
from os import getcwd | |
if len(sys.argv) > 2 : | |
a = getcwd() #getcwd() to find out current directory | |
print("Your current directory is : ",a) |
This file contains 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 | |
# Pygoogle.py -> Opens several Google search results | |
import sys | |
import requests | |
import webbrowser | |
import bs4 | |
print('Googling') | |
res = requests.get('http://google.com/search?q=' + ' '.join(sys.argv[1:])) | |
res.raise_for_status() |
This file contains 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 | |
#Scraping wikipedia page according to your command line input | |
import sys | |
import requests | |
import bs4 | |
RED = '\033[31m' | |
END = '\033[0m' | |
ascii_art = RED \ | |
+ """ |
This file contains 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 | |
#mass_mailer.py -> mass mailing script | |
import smtplib | |
def mass(): | |
smtpobj = smtplib.SMTP('smtp.gmail.com',587) | |
#smtpobj is a SMTP object that represents a connection to an SMTP mail server and has methods for sending emails. | |
my_email = input("What is your gmail?:") | |
my_passw = input("Enter the password:") | |
recip_mail = input("What is the recipient gmail?:") | |
message = input("Enter the message that you want to mail:\n") |
This file contains 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 | |
#pingscanner.py | |
import sys | |
from scapy.all import * | |
ip = sys.argv[1] # command line argument | |
icmp = IP(dst=ip)/ICMP() | |
#icmp = IP(dst=ip)/TCP() | |
#IP defines the protocol for IP addresses | |
#dst is the destination IP address | |
#TCP defines the protocol for the ports |
This file contains 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 | |
#Robot.py | |
from scapy.all import * | |
from pyfiglet import Figlet | |
logo = Figlet(font='graffiti') | |
print(logo.renderText('%R%\nfs0c131y..%')) | |
ip = input("Enter the ip address or url:\n") | |
port = int(input("Enter the port number:\n")) | |
def checkhost(): | |
ping = IP(dst=ip)/ICMP() |
This file contains 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 smtplib | |
import getpass | |
smtpobj = smtplib.SMTP('smtp.gmail.com',587) | |
my_email = input("What is your gmail?:") | |
my_passw = getpass.getpass("Enter the password:") | |
smtpobj.starttls() | |
#This step enables encryption(TLS Encryption) for your connection. | |
smtpobj.login(my_email,my_passw) | |
#this will help user to logged in gmail account |
This file contains 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
#TTlOs.psm1 | |
#< | |
# Ping scanner with os detection according with ttl value. | |
# Test-connection is a type of function in powershell uses as a ping command. | |
#> | |
# | |
function PsPing | |
{ | |
param($ip) | |
Process |
This file contains 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 | |
# Hackthebox invite code generator | |
import requests | |
import base64 | |
import json | |
from os import system | |
system('tput setaf 9') | |
print(""" | |
OlderNewer