- Create a custom class
?>
cp id_rsa id_rsa.org | |
openssl rsa -in id_rsa.org -out id_rsa |
git config --global user.name "Undefined Zain" | |
git config --global user.email "[email protected]" | |
ls -al ~/.ssh | |
ssh-keygen -t rsa -b 4096 -C "[email protected]" | |
eval "$(ssh-agent -s)" | |
ssh-add ~/.ssh/id_rsa | |
sudo apt-get install xclip | |
xclip -sel clip < ~/.ssh/id_rsa.pub |
?>
# 2017 - @zend | |
# | |
# Wordpress 4.7.0/4.7.1 Unauthenticated Content Injection PoC | |
# Full bug description: https://blog.sucuri.net/2017/02/content-injection-vulnerability-wordpress-rest-api.html | |
# Usage example: | |
# | |
# List available posts: | |
# | |
# $ python inject.py http://localhost:8070/ |
<html> | |
<body> | |
<p>Here are Webber’s points:</p> | |
<ul> | |
<li>If a method can be static, declare it static. Speed improvement is by a factor of 4.</li> | |
<li>echo is faster than print.(<em>* compare with list from phplens by John Lim</em>)</li> | |
<li>Use echo’s multiple parameters instead of string concatenation.</li> | |
<li>Set the maxvalue for your for-loops before and not in the loop.</li> | |
<li>Unset your variables to free memory, especially large arrays.</li> | |
<li>Avoid magic like __get, __set, __autoload</li> |
<?php | |
/* | |
########################################################################## | |
# PHP Benchmark Performance Script # | |
# © 2010 Code24 BV # | |
# # | |
# Author : Alessandro Torrisi # | |
# Company : Code24 BV, The Netherlands # | |
# Date : July 31, 2010 # | |
# version : 1.0 # |
import requests | |
from bs4 import BeautifulSoup | |
import sys | |
headers = {'User-Agent': 'Mozilla/5.0'} | |
session = requests.Session() | |
download_links = [] |
import requests | |
from bs4 import BeautifulSoup | |
import sys | |
if len(sys.argv) == 1: | |
print ('Please input at least a word, i.e python scraping.py bisa') | |
else: | |
kata = sys.argv[1] | |
headers = {'User-Agent': 'Mozilla/5.0'} |
import requests | |
from bs4 import BeautifulSoup | |
import sys | |
if len(sys.argv) < 3: | |
print ('Usage example : python resi_scraping.py tiki 030003437484 ') | |
else: | |
jasa = sys.argv[1] | |
noresi = sys.argv[2] |