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.

396 B
Raw Blame
#!/usr/bin/env python3

import requests
from requests.auth import HTTPBasicAuth
from getpass import getpass

username=input("Enter username:")
password = getpass()

response = requests.get('https://api.github.com/user', auth=HTTPBasicAuth(username,password))
print('Response.status_code:'+ str(response.status_code))

if response.status_code == 200:
    print('Login successful :'+response.text)