making a reverse shell for hacking python code example
Example 1: making a basic network scanner using python
import socket
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
target = input('What website to scan?: ')
Example 2: non-words in python
import re
regex = re.compile('[^a-zA-Z]')
#First parameter is the replacement, second parameter is your input string
regex.sub('', 'ab3d*E')
#Out: 'abdE'