diff --git a/GoOS/.vs/GoOS/FileContentIndex/0ad2a183-3527-486c-832f-728d6b36a6f7.vsidx b/GoOS/.vs/GoOS/FileContentIndex/0ad2a183-3527-486c-832f-728d6b36a6f7.vsidx new file mode 100644 index 0000000000..95db26bcc8 Binary files /dev/null and b/GoOS/.vs/GoOS/FileContentIndex/0ad2a183-3527-486c-832f-728d6b36a6f7.vsidx differ diff --git a/GoOS/.vs/GoOS/FileContentIndex/0de5cc12-721e-4cf1-b657-98a845754bf2.vsidx b/GoOS/.vs/GoOS/FileContentIndex/0de5cc12-721e-4cf1-b657-98a845754bf2.vsidx new file mode 100644 index 0000000000..bc108b842b Binary files /dev/null and b/GoOS/.vs/GoOS/FileContentIndex/0de5cc12-721e-4cf1-b657-98a845754bf2.vsidx differ diff --git a/GoOS/.vs/GoOS/FileContentIndex/1f3fc284-7768-498f-b480-da876a75a9cb.vsidx b/GoOS/.vs/GoOS/FileContentIndex/1f3fc284-7768-498f-b480-da876a75a9cb.vsidx new file mode 100644 index 0000000000..a8b1827df0 Binary files /dev/null and b/GoOS/.vs/GoOS/FileContentIndex/1f3fc284-7768-498f-b480-da876a75a9cb.vsidx differ diff --git a/GoOS/.vs/GoOS/FileContentIndex/2cb51a9d-ba58-49f5-a7a6-e4f22c4e053e.vsidx b/GoOS/.vs/GoOS/FileContentIndex/2cb51a9d-ba58-49f5-a7a6-e4f22c4e053e.vsidx deleted file mode 100644 index fd597c3c17..0000000000 Binary files a/GoOS/.vs/GoOS/FileContentIndex/2cb51a9d-ba58-49f5-a7a6-e4f22c4e053e.vsidx and /dev/null differ diff --git a/GoOS/.vs/GoOS/FileContentIndex/3dcc2ad9-1b2b-42d9-ae70-7f0e6216d92f.vsidx b/GoOS/.vs/GoOS/FileContentIndex/3dcc2ad9-1b2b-42d9-ae70-7f0e6216d92f.vsidx new file mode 100644 index 0000000000..c930a038fb Binary files /dev/null and b/GoOS/.vs/GoOS/FileContentIndex/3dcc2ad9-1b2b-42d9-ae70-7f0e6216d92f.vsidx differ diff --git a/GoOS/.vs/GoOS/FileContentIndex/6660d0c9-0fe4-4224-a2af-f01d62d8a8b7.vsidx b/GoOS/.vs/GoOS/FileContentIndex/6660d0c9-0fe4-4224-a2af-f01d62d8a8b7.vsidx deleted file mode 100644 index fb98c86b47..0000000000 Binary files a/GoOS/.vs/GoOS/FileContentIndex/6660d0c9-0fe4-4224-a2af-f01d62d8a8b7.vsidx and /dev/null differ diff --git a/GoOS/.vs/GoOS/FileContentIndex/7eebc265-dc9a-46b3-ad28-9bb46fe012e1.vsidx b/GoOS/.vs/GoOS/FileContentIndex/7eebc265-dc9a-46b3-ad28-9bb46fe012e1.vsidx deleted file mode 100644 index 950ef0d364..0000000000 Binary files a/GoOS/.vs/GoOS/FileContentIndex/7eebc265-dc9a-46b3-ad28-9bb46fe012e1.vsidx and /dev/null differ diff --git a/GoOS/.vs/GoOS/FileContentIndex/9b0668ab-d73c-4699-a514-c9be924d48b2.vsidx b/GoOS/.vs/GoOS/FileContentIndex/9b0668ab-d73c-4699-a514-c9be924d48b2.vsidx deleted file mode 100644 index dc7b948d2b..0000000000 Binary files a/GoOS/.vs/GoOS/FileContentIndex/9b0668ab-d73c-4699-a514-c9be924d48b2.vsidx and /dev/null differ diff --git a/GoOS/.vs/GoOS/v17/.suo b/GoOS/.vs/GoOS/v17/.suo index 55154dead7..800ea3c84b 100644 Binary files a/GoOS/.vs/GoOS/v17/.suo and b/GoOS/.vs/GoOS/v17/.suo differ diff --git a/GoOS/Kernel.cs b/GoOS/Kernel.cs index a2bcda6334..227d2042ea 100644 --- a/GoOS/Kernel.cs +++ b/GoOS/Kernel.cs @@ -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) @@ -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