Skip to content

Instantly share code, notes, and snippets.

@mritunjay-k
mritunjay-k / whats_ur_status.py
Last active Nov 24, 2019
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)
View whats_ur_status.py
#!/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 Apr 30, 2019
Check if a domain in up or not..!!
View is_it_up.py
#!/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 Apr 30, 2019
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.
View ipgrabber.py
#!/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 Feb 7, 2019
This is how you make your own terminal like a BOSS !!
View Mycontrol.java
//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 Feb 7, 2019
A simple alarm clock for JAVA beginners
View Alarm_C.java
// 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{