Skip to content

Instantly share code, notes, and snippets.

View powerexploit's full-sized avatar
🏠
Working from home

powerexploit powerexploit

🏠
Working from home
View GitHub Profile
@powerexploit
powerexploit / hackthebox.py
Last active September 14, 2019 13:17
Hackthebox invite code using python
#!/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)
@powerexploit
powerexploit / excel_checker.py
Created September 5, 2019 14:40
Script to read and show sheet of your excel file
#!/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)
@powerexploit
powerexploit / Pygoogle.py
Created September 18, 2019 15:23
Google Search Result Scraper
#!/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()
@powerexploit
powerexploit / wikipy.py
Created September 24, 2019 14:43
Wikipedia scraping with python
#!/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 \
+ """
@powerexploit
powerexploit / MailBomber.py
Last active October 8, 2019 14:24
This is a mass mailer script which helps to send multiple mails at one time
#!/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")
@powerexploit
powerexploit / pingscanner.py
Created October 9, 2019 17:19
pingscanner using python
#!/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
@powerexploit
powerexploit / robot.py
Created October 19, 2019 15:09
Stealth Syn Scanner to check open ports
#!/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()
#!/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
@powerexploit
powerexploit / TTLOs.psm1
Created January 17, 2020 06:59
Os Detection With TTL
#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
@powerexploit
powerexploit / HTBHACK
Created May 3, 2020 15:16
Hackthebox invite generator
#!/usr/bin/python
# Hackthebox invite code generator
import requests
import base64
import json
from os import system
system('tput setaf 9')
print("""