Skip to content

Commit

Permalink
wtf cosmos
Browse files Browse the repository at this point in the history
  • Loading branch information
Owen2k6 committed Sep 30, 2022
1 parent 4ceb800 commit 77948f0
Show file tree
Hide file tree
Showing 10 changed files with 22 additions and 16 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified GoOS/.vs/GoOS/v17/.suo
Binary file not shown.
38 changes: 22 additions & 16 deletions GoOS/Kernel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1088,7 +1088,7 @@ protected void CommandMode()

else if (input.StartsWith("godo"))
{
String[] cheese = input.Split(".");
String[] cheese = input.Split(" ");
if (cheese[1].Equals("pakgo"))
{
if (cheese.Length < 1)
Expand All @@ -1098,22 +1098,28 @@ protected void CommandMode()
else if (cheese.Length == 3)
{
log(ConsoleColor.Yellow, "Lets roll.");
using (var xClient = new TcpClient(4242))
try
{
xClient.Connect(new Address(185, 199, 110, 133), 4242);
//GitHub IP for reference 140.82.121.3
//GitHub UserContent data 185.199.110.133
/** Send data **/
xClient.Send(Encoding.ASCII.GetBytes("GET / HTTP/1.1\nHost: raw.githubusercontent.com/Owen2k6/GoOS-Exchange/main/" + cheese[3]));

/** Receive data **/
var endpoint = new EndPoint(Address.Zero, 0);
var data = xClient.Receive(ref endpoint); //set endpoint to remote machine IP:port
var data2 = xClient.NonBlockingReceive(ref endpoint); //retrieve receive buffer without waiting
string bitString = BitConverter.ToString(data2);
File.Create(@"0:\" + cheese[3]);
File.WriteAllText(@"0:\" + cheese[3], bitString);
print(bitString);
using (var xClient = new TcpClient(4242))
{
xClient.Connect(new Address(185, 199, 110, 133), 4242);
//GitHub IP for reference 140.82.121.3
//GitHub UserContent data 185.199.110.133
/** Send data **/
xClient.Send(Encoding.ASCII.GetBytes("GET / HTTP/1.1\nHost: raw.githubusercontent.com/Owen2k6/GoOS-Exchange/main/" + cheese[3] + ".goexe"));

/** Receive data **/
var endpoint = new EndPoint(Address.Zero, 0);
var data = xClient.Receive(ref endpoint); //set endpoint to remote machine IP:port
var data2 = xClient.NonBlockingReceive(ref endpoint); //retrieve receive buffer without waiting
string bitString = BitConverter.ToString(data2);
File.Create(@"0:\" + cheese[3]);
File.WriteAllText(@"0:\" + cheese[3], bitString);
print(bitString);
}
} catch (Exception a)
{
log(ConsoleColor.Red, "wtf happened yo. dis shit died on you");
}
}
else
Expand Down

0 comments on commit 77948f0

Please sign in to comment.