This text is italic
This file contains hidden or 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
<?php | |
const SHM_KEY = 0x1337; | |
function printfln($str, ...$args) { | |
printf($str . "\n", ...$args); | |
} | |
function sprintfln($str, $args) { | |
return sprintf($str . "\n", ...$args); |
This file contains hidden or 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 python3 | |
# send ICMP using Impacket (PoC) | |
# setup: | |
# $ python3 -m venv .venv | |
# $ source .venv/bin/activate | |
# (venv)$ pip3 install impacket | |
# (venv)$ sudo ping.py 192.168.1.1 100 | |
import socket |
This file contains hidden or 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
<?php | |
# https://www.exploit-db.com/exploits/49520 | |
// default credentials | |
$admin_username = "admin"; | |
$admin_password = "Test@12345"; | |
$user_email = "[email protected]"; | |
$user_password = "Test@123"; |
This file contains hidden or 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/python | |
# Generate 2 linear equations in 2 variables and their solutions | |
# restrictions: a,b,c,d = positive integeers [1,9] | |
# matrix: | |
#| a b || x | = | e | | |
#| c d || y | | f | | |
from fractions import Fraction | |
from random import randint |
This file contains hidden or 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
php://filter/convert.iconv.utf-8.utf-16/resource=$FILE | |
php://filter/convert.base64-encode/resource=$FILE | |
/etc/passwd | |
/proc/self/environ |
This file contains hidden or 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.util.Scanner; | |
public class Shop { | |
public static void main(String[] args) | |
{ | |
Scanner input = new Scanner(System.in); | |
Float total_price = new Float("0.00"); | |
String category = new String(""); | |
String code = new String(""); | |
Integer quantity = new Integer("0"); |
This file contains hidden or 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
# YAML cheat sheet | |
# Reference: https://www.youtube.com/watch?v=cdLNKUoMc6c | |
# object | |
person: | |
# string value. single/double quotes | |
# anchoring | |
name: &name "daniel" # anchor name doesn't have to be the same as key name | |
occupation: 'student' |
This file contains hidden or 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
<?php | |
/** | |
* MyNakal Link Generator | |
* | |
* Feed it a (MyNakal) video link, and it will give out | |
* the direct video link (.mp4, .3gp, etc) | |
* This script was written in 2014 and it most likely does not work anymore | |
* This script is uploaded here for academic purposes | |
* No harm was intended during the writing of this script | |
* Use it at your own risk |
This file contains hidden or 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
<?php | |
function human_to_dog_years($human_age) { | |
if (!$human_age || $human_age < 0) { | |
throw new InvalidArgumentException('Only positive input is accepted!'); | |
} | |
$firstTwoHumanYear = 10.5; // 10.5 dog years | |
$oneHumanYear = $firstTwoHumanYear / 2; // 5.25 dog years |
NewerOlder