Skip to content

Instantly share code, notes, and snippets.

@mritunjay-k
mritunjay-k / whats_ur_status.py
Last active November 24, 2019 02:31
Provide it a list of domains and it will show you which of them is 200 OK or 404 NOT FOUND (extremly helpful for web application bug hunting)
#!/usr/bin/env python
import requests
try:
read_file = open(input("Enter path of the file containing subdomains: "),'r')
for host in read_file:
domain = host.rstrip("\n")
try:
@mritunjay-k
mritunjay-k / is_it_up.py
Last active April 30, 2019 01:37
Check if a domain in up or not..!!
#!/usr/bin/env python
import socket
try:
domain = input("Enter the name of the domain: ")
ip = socket.gethostbyname(domain)
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
if sock.connect_ex((ip,80)) and sock.connect_ex((ip,443)):
print("Its down!!")
@mritunjay-k
mritunjay-k / ipgrabber.py
Last active April 30, 2019 01:37
Takes a file containing list of domains as an input and gives their ipv4 address as an output in another file. I developed it basically for using masscan. It can also be used for educational purposes too.
#!/usr/bin/env python
import sys
import socket
try:
read_file = open(input("Enter path of the file containing subdomains: "),'r')
for host in read_file:
try:
@mritunjay-k
mritunjay-k / Mycontrol.java
Last active February 7, 2019 13:18
This is how you make your own terminal like a BOSS !!
//Your temporary Terminal.
import java.io.*;
import java.util.Scanner;
public class Mycontrol{
public static void main(String[] args){
try{
Scanner sc=new Scanner(System.in);
System.out.println("Enter a command");
String cmd= sc.next();
@mritunjay-k
mritunjay-k / Alarm_C.java
Created February 7, 2019 06:57
A simple alarm clock for JAVA beginners
// A simple alarm clock for JAVA beginners
import java.util.*;
import java.time.format.DateTimeFormatter;
import java.time.LocalDateTime;
import java.text.*;
import java.lang.*;
public class Alarm_C{
public static void main(String[] args){
try{