Skip to content

Instantly share code, notes, and snippets.

Vedant Bhatt vedantb

Block or report user

Report or block vedantb

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View portscannerfinal.py
import optparse
import socket
from socket import *
from threading import *
screenLock = semaphore(value=1)
def connScan(tgtHost, tgtPort):
try:
connSkt = socket(AF_INET, SOCK_STREAM)
connSkt.connect((tgtHost, tgtPort))
connSkt.send('Violent Python \r\n')
View portscanNmap.py
import nmap
import optparse
def nmapScan(tgtHost, tgtPort):
nmScan = nmap.PortScanner()
nmScan.scan(tgtHost, tgtPort)
state=nmScan[tgtHost]['tcp'][int(tgtPort)]['state']
print " [*] " + tgtHost + " tcp/" + tgtPort + " " + state
def main():
parser = optparse.OptionParser('usage%prog -H <target host> -p <target port>')
View keybase.md

Keybase proof

I hereby claim:

  • I am vedantb on github.
  • I am vedantb (https://keybase.io/vedantb) on keybase.
  • I have a public key ASCwd1LJDKfCJaU4n7I8wHw2bKdNBWlMZ9PDdCavrQPG-Ao

To claim this, I am signing this object:

View goldrushdata.json
[
{
"name": "Josh Fendrick",
"twitch": "fendricklamar",
"twitter": "FendrickLamar",
"youtube": null,
"state": "DC",
"country": "United States"
},
{ "name": "", "twitch": "gg_allpain", "twitter": null, "youtube": null, "state": "AL", "country": "United States" },
View goldrushdata.js
var data = require('./goldrushpage1.json');
var players = require('./playerOutput.json');
var fs = require('fs');
players = players || [];
var playersLength = players.length;
data.items.entities.attendee.forEach((item, index) => {
var player = item.player;
players[playersLength + index] = {
You can’t perform that action at this time.