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
1. Download IIS manager | |
2. Run IIS -> Local PC -> Server Certificates | |
3. Generate CRC -> Create Certificate Request | |
4. Send CRC to auth server, get .cer file in return | |
5. Rename .cer file to .p7b | |
6. Open p7b file in certmgr application | |
7. View all certificate, select domain certificate and export cerificate as .CER file | |
8. Open IIS -> Local PC -> Server Certificates -> Complete certificate request | |
9. Provide recently exported .CER file (in step 7) | |
10. Select new certificate and export to .pfx file (provide password as needed). |
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
@echo off | |
setlocal enabledelayedexpansion | |
cls | |
echo ---------------------------------------------- | |
echo LoL RADS Registry Fixer by PersianMG (https://github.com/mohammadg) | |
echo ---------------------------------------------- | |
:: Ask for 64bit or 32 bit | |
:getArch |
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
# Instantly print out CPU utilization at current time as a floating point | |
echo print `top -n 1 | tr -s " " | cut -d$" " -f10 | tail -n +8 | head -n -1 | paste -sd+ | bc`/ `nproc` | python |
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
% Testing for: Assignment 1 - Prolog Programming | |
% Mohammad Ghasembeigi (z3464208) | |
% Date: 04/04/2016 | |
% Based on: https://www.cse.unsw.edu.au/~billw/testing.html | |
% How to test: | |
% $ swipl -s ass1.pl < ass1_tests.pl | |
% Then manually compare expected answer with the result on the line underneath (program answer) | |
% Important Note: |
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
Code: | |
$timezone_identifiers = DateTimeZone::listIdentifiers(); | |
for ($i=0; $i < sizeof($timezone_identifiers); $i++) { | |
echo "$timezone_identifiers[$i]<br />"; | |
} | |
Prints: | |
Africa/Abidjan | |
Africa/Accra | |
Africa/Addis_Ababa |
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, re, os | |
START_NUM = 0 | |
#Create dump file | |
file = open('db_dump.txt', 'a+') | |
count = 0 | |
while True: |
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
#!/usr/bin/env python | |
import requests, re | |
from bs4 import BeautifulSoup | |
num_vac_bans = 0 | |
num_game_bans = 0 | |
num_punished = 0 | |
total = 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
#!/bin/bash | |
TIMESTAMP=$(date +"%F") | |
BACKUP_DIR="/root/mysql/$TIMESTAMP" | |
MYSQL_USER="root" | |
MYSQL=/usr/bin/mysql | |
MYSQL_PASSWORD="REMOVED" | |
MYSQLDUMP=/usr/bin/mysqldump | |
mkdir -p "$BACKUP_DIR/mysql" |
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
REM IntelliJ Terminal Startup Script | |
SET /p TARGET=<.idea\JAVA_HOME.txt | |
IF /i "%TARGET%"=="java6" ( | |
SET JAVA_HOME=%JAVA_6_HOME% | |
) | |
IF /i "%TARGET%"=="java8" ( | |
SET JAVA_HOME=%JAVA_8_HOME% | |
) | |
cmd.exe /K "CLEAR && ECHO ^>^> IntelliJ Terminal Startup Script V1.00 && ECHO ^>^> Using JAVA_HOME: %JAVA_HOME%" |
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
It looks like Facebook automatically tries to fix email corrections upon logging in. | |
If you login with the wrong email but correct password, it will do a bruteforce/close match attempt with similar emails. | |
If successfully, you login to that account, even if the email you put in belongs to another user. | |
Seems to work for even really wack emails that are 4 characters different! | |
If both accounts have the same password, it logs in the email that matches. | |
Tested on custom domain, might be a lot less usable on public @gmail.com domain etc. | |
https://security.stackexchange.com/questions/214814/why-can-i-log-in-to-my-facebook-account-with-a-misspelled-email-password |