This file contains hidden or 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
| ''' | |
| Simple file sharing server | |
| ''' | |
| import glob, os, sys | |
| import socket, json | |
| import threading | |
| import select |
This file contains hidden or 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
| deb http://archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse | |
| deb-src http://archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse | |
| deb http://archive.ubuntu.com/ubuntu/ focal-updates main restricted universe multiverse | |
| deb-src http://archive.ubuntu.com/ubuntu/ focal-updates main restricted universe multiverse | |
| deb http://archive.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse | |
| deb-src http://archive.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse | |
| deb http://archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse |
This file contains hidden or 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
| deb http://ports.ubuntu.com/ubuntu-ports focal main restricted universe multiverse | |
| deb-src http://ports.ubuntu.com/ubuntu-ports focal main restricted universe multiverse | |
| deb http://ports.ubuntu.com/ubuntu-ports focal-updates main restricted universe multiverse | |
| deb-src http://ports.ubuntu.com/ubuntu-ports focal-updates main restricted universe multiverse | |
| deb http://ports.ubuntu.com/ubuntu-ports focal-backports main restricted universe multiverse | |
| deb-src http://ports.ubuntu.com/ubuntu-ports focal-backports main restricted universe multiverse | |
| deb http://ports.ubuntu.com/ubuntu-ports focal-security main restricted universe multiverse |
This file contains hidden or 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
| deb http://deb.debian.org/debian buster main contrib non-free | |
| deb-src http://deb.debian.org/debian buster main contrib non-free | |
| deb http://deb.debian.org/debian buster-updates main contrib non-free | |
| deb-src http://deb.debian.org/debian buster-updates main contrib non-free | |
| deb http://security.debian.org/debian-security/ buster/updates main contrib non-free | |
| deb-src http://security.debian.org/debian-security/ buster/updates main contrib non-free | |
| deb http://ftp.debian.org/debian buster-backports main contrib non-free |
This file contains hidden or 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
| ----- BEGIN LICENSE ----- | |
| Member J2TeaM | |
| Single User License | |
| EA7E-1011316 | |
| D7DA350E 1B8B0760 972F8B60 F3E64036 | |
| B9B4E234 F356F38F 0AD1E3B7 0E9C5FAD | |
| FA0A2ABE 25F65BD8 D51458E5 3923CE80 | |
| 87428428 79079A01 AA69F319 A1AF29A4 | |
| A684C2DC 0B1583D4 19CBD290 217618CD | |
| 5653E0A0 BACE3948 BB2EE45E 422D2C87 |
This file contains hidden or 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 datetime | |
| import time | |
| import hashlib | |
| import hmac | |
| import base64 | |
| class OTP(object): | |
| digits=6 | |
| digest=hashlib.sha1 | |
| def __init__(self,s: str) -> None: |
This file contains hidden or 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
| const net = require('net') | |
| const socket = net.createConnection(25, 'gmail-smtp-in.l.google.com', () => { | |
| console.log('Connected!') | |
| socket.write('HELO gmail\r\n') | |
| socket.write('MAIL FROM: <noreply@mayank.org>\r\n') | |
| socket.write('RCPT TO: <mkgupta74d@gmail.com>\r\n') | |
| socket.write('QUIT\r\n') | |
| }) | |
| socket.on('data', (buff) => console.log(buff.toString())) |
This file contains hidden or 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 socket | |
| mailserver = 'gmail-smtp-in.l.google.com' | |
| clientSocket=socket.socket(socket.AF_INET,socket.SOCK_STREAM) | |
| clientSocket.connect((mailserver, 25)) | |
| print(clientSocket.recv(2048)) | |
| clientSocket.send('HELO verifyemailaddress.org \r\n'.encode()) | |
| print(clientSocket.recv(2048)) | |
| clientSocket.send('MAIL FROM: <noreply@verifyemailaddress.org>\r\n'.encode()) | |
| print(clientSocket.recv(2048)) | |
| clientSocket.send('RCPT TO: <mksdsd233sssdsdpta74d@gmail.com>\r\n'.encode()) |
This file contains hidden or 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 socket, sys | |
| from struct import * | |
| from random import randint | |
| import time | |
| import binascii | |
| class IPv4: | |
| def __init__(self): | |
| pass | |
| def pack(self,srcip:str,destip:str): |
This file contains hidden or 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 socket, sys, signal | |
| import select, threading | |
| signal.signal(signal.SIGINT, lambda a,b: exec('print(f"[+]Socket server shutting down ...")\nsys.exit(0)')) | |
| class Server: | |
| def __init__(self,lhost:tuple,rhost:tuple,debug=True): | |
| self.lhost = lhost | |
| self.rhost = rhost | |
| self.debug = debug |