Simple keystroke to prevent sleep

Standard
A simple script to double-tap on the numb lock to prevent the machine to sleep
This is a very simple script which can prevent the machine to sleep. 

Python 

import pyautogui
import time

while True:
    pyautogui.press('numlock')
    pyautogui.press('numlock')
    time.sleep(60)
Number lock key double tap
Windows Powershell

while ($true) {
    [System.Windows.Forms.SendKeys]::SendWait("{NUMLOCK}")
    [System.Windows.Forms.SendKeys]::SendWait("{NUMLOCK}")
    Start-Sleep -Seconds 60
}



Here is the same script written in PowerShell without using the System.Windows.Forms.SendKeys class:

while ($true) {
    Add-Type -AssemblyName System.Windows.Forms
    [System.Windows.Forms.SendKeys]::Send("{NUMLOCK}")
    [System.Windows.Forms.SendKeys]::Send("{NUMLOCK}")
    Start-Sleep -Seconds 60
}


Here is the same script written in PowerShell using the SendWait() method from the System.Windows.Forms.SendKeys class:

Add-Type -AssemblyName System.Windows.Forms
while ($true) {
[System.Windows.Forms.SendKeys]::SendWait("{NUMLOCK}")
[System.Windows.Forms.SendKeys]::SendWait("{NUMLOCK}")
Start-Sleep -Seconds 60
}

Slider Revolution and RevSlider Exploit WordPress

Standard

In my everyday malware reverse engineering experience i come across multiple websites injections by malware, these malware are very much unique and cannot be found easily using search strings . Recently i was given a task to clean malware from a infected website.  The website was using the very famous wordpress cms, when i search the internet i found multiple exploits which can be used to upload a backdoor into any website which is vulnerable due to outdated Slider plugin.

sliderpro

Continue reading

Introduction

Standard

I am a security enthusiast, Having 12 years of hands-on experience working in the Pakistani information security industry. I have been learning new things every day, testing new tools, playing around with my Hak5 gadgets, SDR, Wifi gadgets, building my own gadgets on Raspberry Pi. I specialize in Penetration testing, with Red team skills.

This blog is all about the experience I have gained till now, ill include the tools I am testing (which I failed to do much as of now) and the web application bugs which I am responsibly for reporting. Hope my website ends up in your bookmark and you have a present stay here :)

Mr. T

EDITED: May 2020