This file contains 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
#!/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: |
This file contains 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
#!/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!!") |
This file contains 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
#!/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: |
This file contains 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
//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(); |
This file contains 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
// 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{ |