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
sudo tcpdump -i wlan0 -n src 216.58.220.46 -c 5 > capture.dat #can also use src youtube.com | |
cat capture.dat | |
cat capture.dat | awk -F ' ' '{print $5}' | awk -F '.' '{print $1"."$2"."$3"."$4}' | awk -F ':' '{print $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
f = open('wordlist.txt', 'r') | |
a = f.readlines() | |
for i in range(0, len(a)): | |
a[i] = a[i][:-2] | |
b = [] | |
for val in a: |
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
''' | |
Copy the list from youtube and save it in a file urls.txt | |
Run this script to get all the urls | |
Put them in a file and run youtube-dl --playlist-start <number> --playlist-end <number> -a "filename.txt" | |
Download entire playlist | |
''' | |
from BeautifulSoup import BeautifulSoup | |
a = open('urls.txt', 'r') |
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
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, target-densitydpi=medium-dpi, user-scalable=0" /> |
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
/* | |
* App crashes if you don't make a separate thread to send your http requests. | |
* This example uses a new thread to send http requests and hence won't crash the application. | |
*/ | |
Random generator = new Random(); | |
int i = generator.nextInt(6) + 1; | |
List<NameValuePair> pairs = new ArrayList<NameValuePair>(); |
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 | |
echo "" > result.txt | |
date >> result.txt | |
echo "Zense" | |
function test (){ | |
date | |
echo " " |
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 requests | |
from BeautifulSoup import BeautifulSoup | |
r = requests.get('http://<url>') | |
while r.status_code!=200: | |
r = requests.get('http://<urL>') | |
soup = BeautifulSoup(r.text) | |
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 java.lang.reflect.Array; | |
import java.util.ArrayList; | |
import java.util.Arrays; | |
import java.util.Collections; | |
import java.util.Comparator; | |
import java.util.Scanner; | |
import java.io.*; | |
import javax.naming.ldap.SortControl; |
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
def run_terminal(command): | |
p = subprocess.Popen(command.split(), stdout=subprocess.PIPE, stderr=subprocess.PIPE) | |
out, err = p.communicate() | |
return out |
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
After you are done configuring SSH: | |
To log in: | |
First you have to make sure that your ssh-agent uses your public key. For that run | |
eval "$(ssh-agent -s)" in the terminal from which you want to SSH | |
After doing that | |
To get ssh access: | |
ssh username@kodingurl |