Skip to content

This Repository is a collection of different ethical hacking tools and malware's for penetration testing and research purpose written in python, ruby, rust, c++, go and c.

Create generate_secure_url.py

Abdul Wahab Junaide3f79b6572d8
diff --git a/Python Tools/Secrets/generate_secure_url.py b/Python Tools/Secrets/generate_secure_url.py
new file mode 100644
index 0000000..cbd2931
--- /dev/null
+++ b/Python Tools/Secrets/generate_secure_url.py
@@ -0,0 +1,23 @@
+import secrets
+import string
+
+def generateSecureURL():
+
+ src = string.ascii_letters + string.digits + string.punctuation
+ password = secrets.choice(string.ascii_lowercase)
+ password += secrets.choice(string.ascii_uppercase)
+ password += secrets.choice(string.digits)
+ password += secrets.choice(string.punctuation)
+
+ for i in range (16):
+ password += secrets.choice(src)
+
+ print ("Strong password:", password)
+
+ secureURL = "https://www.domain.com/auth/reset="
+ secureURL += secrets.token_urlsafe(16)
+
+ print("Token secure URL:", secureURL)
+
+if __name__ == "__main__":
+ generateSecureURL()