Forum > General >

CodeBox (GetHttp)

Posts: 369

Threads: 61

Joined: Apr, 2018

Reputation: 0

Posted

I'm trying to make a GetHttp for CodeBox though. Other exploits should also have if they don't know how to do it, because it is pretty easy. Search on the InterNet "get webpage content c#", then find the script and costumize it and make it so that it could replace every GetHttp in Lua to the string of the page before passing it to WeAreDevs.dll or WeAreDevs.cpp.dll.


string url = code.Substring(httpIndex + 2, closeIndex - 1);

                //Get http content

                HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url);
                HttpWebResponse response = (HttpWebResponse)request.GetResponse();

                if (response.StatusCode == HttpStatusCode.OK)
                {
                    Stream receiveStream = response.GetResponseStream();
                    StreamReader readStream = null;

                    if (response.CharacterSet == null)
                    {
                        readStream = new StreamReader(receiveStream);
                    }
                    else
                    {
                        readStream = new StreamReader(receiveStream, Encoding.GetEncoding(response.CharacterSet));
                    }

                    string data = readStream.ReadToEnd();

                    response.Close();
                    readStream.Close();

                    code.Remove(httpIndex, closeIndex);
                    code.Insert(httpIndex, data);
                }
  • 0

Added

well for the people who use other stuff you can change wearedevs to ur api or script or file.
  • 0

Posts: 12

Threads: 1

Joined: Jun, 2018

Reputation: 0

Replied

oh that is the good stuff lol
  • 0

Users viewing this thread:

( Members: 0, Guests: 1, Total: 1 )