Skip to content

Instantly share code, notes, and snippets.

View xputerax's full-sized avatar
⚒️
hacking

ad xputerax

⚒️
hacking
View GitHub Profile
@xputerax
xputerax / carrental.php
Created June 15, 2021 07:39
Car Rental Project 2.0 - Default credential checker
<?php
# https://www.exploit-db.com/exploits/49520
// default credentials
$admin_username = "admin";
$admin_password = "Test@12345";
$user_email = "test@gmail.com";
$user_password = "Test@123";
@xputerax
xputerax / linear_equations_generator.py
Last active November 12, 2021 16:45
Linear Equations generator (with solution)
#!/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
@xputerax
xputerax / lfi.txt
Created August 4, 2020 20:56
LFI Stuff
php://filter/convert.iconv.utf-8.utf-16/resource=$FILE
php://filter/convert.base64-encode/resource=$FILE
/etc/passwd
/proc/self/environ
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");
@xputerax
xputerax / cheatsheet.md
Created June 8, 2019 09:46
Markdown cheat sheet

Heading 1

Heading 2

Heading 3

Heading 4

Heading 5
Heading 6

This text is italic

@xputerax
xputerax / cheatsheet.yml
Created June 8, 2019 09:45
YAML cheat sheet
# 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'
@xputerax
xputerax / mynakal.php
Created May 14, 2019 14:36
MyNakal Link Generator
<?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
@xputerax
xputerax / human_to_dog.php
Created October 31, 2017 15:26
Human age to dog age converter
<?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
@xputerax
xputerax / scrape.js
Last active September 1, 2017 06:41
Scrape yougetsignal.com reverse IP result
// run in developer console
var resultset = document.getElementById('results');
var children = resultset.children;
var output = new Array();
for(var i = 1; i<children.length; i++){
var c = children.item(i);
output.push('http://'+c.children[0].innerHTML);
}