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
#!/bin/bash | |
if [ "$1" == "" ] | |
then | |
echo "Usage: ./ipfinder.sh [network IP]" | |
echo "Example: ./ipfinder.sh 192.168.0" | |
else | |
for ip in `seq 1 254`; do | |
ping -c 1 $1.$ip | grep "64 byte" | cut -d " " -f 4 | sed 's/.$//' & | |
done |
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
#include<stdio.h> | |
#include<stdlib.h> | |
int main() | |
{ | |
//variables assigned | |
char *place; | |
char *systemcmd; | |
place=(char *)malloc(10); |
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
#!/bin/bash | |
file="ip.txt" | |
i=1 | |
while read line ; do | |
echo "[+] Scan Started $line ... "; | |
nmap -sS -p- -v -A -T3 -sC -sU -O -oN /home/kali/Desktop/nmap_output/$line $line -oA $line | |
echo "Scan Finished $line" | |
i=$((i+1)); |
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
file="ip.txt" | |
i=1 | |
#reading from file each lines | |
while read line; do | |
#ft=".docx" | |
nm=${line//./_} | |
mkdir $nm; |
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
import { useState } from 'react' | |
//import Card from "./Card.jsx" | |
//import reactLogo from './assets/react.svg' | |
//import viteLogo from '/vite.svg' | |
import './App.css' | |
function App() { | |
const [count, setCount] = useState(6677) | |
// The below function create and return random hex | |
const setBg = () => { |
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
import socket | |
import threading | |
import sys | |
# ================= This is Server =============== | |
class Server: | |
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | |
connections = [] | |
def __init__(self): | |
self.sock.bind(('0.0.0.0',10000)) |
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
// LIST RANKING | |
void main(){ | |
var superHeroes = ['Hulk','Batman',"spiderman","flash"]; | |
superHeroes.forEach((hero){ | |
print("Position : ${superHeroes.indexOf(hero)+1} Next super Hero is $hero "); | |
}); | |
} |
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
import email.utils as eu | |
num = int(raw_input("")) | |
lst=[] | |
for i in range(num): | |
f = raw_input("") | |
li = eu.parseaddr(f) | |
unm = li[1].split("@")[0] | |
dom = li[1].split("@")[1].split(".")[0] | |
ext = li[1].split("@")[1].split(".")[1] |
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
n=4 | |
m=1 | |
for i in range(n): | |
for j in range(n): | |
print("*", end='') | |
print('*') | |
n=n-1 | |
print('*') |
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
/****************************************************************************** | |
Online C Compiler. | |
Code, Compile, Run and Debug C program online. | |
Write your code in this editor and press "Run" button to compile and execute it. | |
***************************SWAP WITHOUT THIRD VARIABLE********************************/ | |
#include <stdio.h> |
NewerOlder