Bored

HTML, PHP, Java, C, C#, C++, etc....

Re: Bored

Postby testserver » February 29th, 2016, 19:06

arnie you make so many god damn scripts why we dont test at least one of them! :rofl:
All i wanna do is *Bang bang bang bang* *cash register sound* and take your moneyyy




[+/-] ©copyright - europe high xp servers (highxp)
User avatar
testserver
Administrator
Administrator
 
Posts: 145



reklama

Re: Bored

Postby [CosX]Mr A » February 29th, 2016, 20:36

Who said I haven't tested his haxs?
:w:




[+/-] ©copyright - europe high xp servers (highxp)
User avatar
[CosX]Mr A
Administrator
Administrator
 
Posts: 90

Re: Bored

Postby Arnie » February 29th, 2016, 23:40

#EDITZ
The gods have their own rules.
-Ovid


Wyrus wrote:you are a fucking hacker prick....


assa1 wrote:some haxy shmaksy code


Mr A wrote:if a person with ransomwares ur lappy then rip

#RIP english


Enjoy my GIT :D




[+/-] ©copyright - europe high xp servers (highxp)
User avatar
Arnie
Administrator
Administrator
Administrator
Administrator
Wizard
Wizard
 
Posts: 285

Re: Bored

Postby [VvV] ziggyOMG » March 1st, 2016, 01:03

[CosX]Mr A wrote:Who said I haven't tested his haxs?
:w:


+1 :bowman: :)) ok :kisssss:
ImageImage




[+/-] ©copyright - europe high xp servers (highxp)
User avatar
[VvV] ziggyOMG
Administrator
Administrator
 
Posts: 51

Re: Bored

Postby Arnie » March 10th, 2016, 01:34

Some little tool I just made:

Form:
Code: Select all
using System;
using System.Windows.Forms;
using System.Net;

namespace GeoLocator
{
    public partial class MainForm : Form
    {
        Web WebHandler = new Web();
        public MainForm()
        {
            InitializeComponent();
        }

        private void MainForm_Load(object sender, EventArgs e)
        {
            string UserIP = WebHandler.GetIP();

            if (UserIP != null)
                UserIPLabel.Text = UserIP;
            else
                UserIPLabel.Text = "ERROR";
        }

        private void QueryButton_Click(object sender, EventArgs e)
        {
            string IPAsString = IPInputTextBox.Text;
            IPAddress IPToQuery;
            try
            {
                IPToQuery = IPAddress.Parse(IPAsString);
            }
            catch
            {
                IPInputTextBox.Text = "Enter a valid IP please";
                return;
            }

            string QueryData = WebHandler.GetData(IPToQuery);
            string[] SplitData;
            if(QueryData != null)
                SplitData = QueryData.Split(',');
            else
            {
                MessageBox.Show("Could not reach the network");
                return;
            }
           
            IPLabel.Text = IPToQuery.ToString();
            CountryLabel.Text = SplitData[0];
            CountryCodeLabel.Text = SplitData[1];
            RegionLabel.Text = SplitData[3]; //This gets sent second
            RegionCodeLabel.Text = SplitData[2]; //They are changed because the region code gets sent first :)
            CityLabel.Text = SplitData[4];
            TimeZoneLabel.Text = SplitData[5];
            ISPLabel.Text = SplitData[6];
            ProxyLabel.Text = SplitData[7];
            DNSLabel.Text = SplitData[8];
           
           
        }
    }
}


Web.cs Class => instance of it is 'Webhandler' in Form

Code: Select all
using System;
using System.Net;
using System.IO;

namespace GeoLocator
{
    class Web
    {
        WebRequest requ;
        WebResponse resp;
        Stream datafromrequest;
        StreamReader datareader;
        HttpWebResponse httpresp;
        HttpWebRequest httprequ;

        public string GetData(IPAddress ip)
        {
            string response = null;
            try
            {
                requ = WebRequest.Create("http://ip-api.com/csv/" + ip.ToString() + "?fields=140063");
                requ.Credentials = CredentialCache.DefaultCredentials;

                resp = requ.GetResponse();

                datafromrequest = resp.GetResponseStream();

                datareader = new StreamReader(datafromrequest);

                response = datareader.ReadToEnd();
                return response;
            }
            catch(Exception)
            {
                return response;
            }
        }

        public string GetIP()
        {
            string response = null;
            try
            {
                httprequ = (HttpWebRequest)WebRequest.Create("http://arnsperger.org/IP.php");
                httpresp = (HttpWebResponse)httprequ.GetResponse();
                datareader = new StreamReader(httpresp.GetResponseStream());
                response = datareader.ReadToEnd();
                return response;
            }
            catch (Exception)
            {
                return response;
            }
        }
    }
}




[+/-] ©copyright - europe high xp servers (highxp)
User avatar
Arnie
Administrator
Administrator
Administrator
Administrator
Wizard
Wizard
 
Posts: 285

Re: Bored

Postby Arnie » January 1st, 2017, 14:03

Code: Select all
// dllmain.cpp : Definiert den Einstiegspunkt für die DLL-Anwendung.
#include "stdafx.h"
#include <stdio.h>
#include <stdlib.h>
#include <iostream>

void* DetourFunction(BYTE * src, const BYTE * dst, const int len)
{
   BYTE* jmp = (BYTE*)malloc(len + 5);
   DWORD dwBack;

   VirtualProtect(src, len, PAGE_EXECUTE_READWRITE, &dwBack);
   memcpy(jmp, src, len);

   jmp += len;
   jmp[0] = 0xE9;

   *(DWORD*)(jmp + 1) = (DWORD)(src + len - jmp) - 5;

   src[0] = 0xE9;
   *(DWORD*)(src + 1) = (DWORD)(dst - src) - 5;
   for (int i = 5; i < len; i++)
      src[i] = 0x90;
   VirtualProtect(src, len, dwBack, &dwBack);

   return (jmp - len);
}

int(__cdecl* SEH_LocalizeTextMessage)(const char *pszInputBuffer, const char *pszMessageType, int errType);

int hkSEH_LocalizeTextMessages(const char *pszInputBuffer, const char *pszMessageType, int errType)
{
   puts(pszInputBuffer);

   pszInputBuffer = "^:Hail Arnie";
   return SEH_LocalizeTextMessage(pszInputBuffer, pszMessageType, errType);
}

DWORD WINAPI ConsoleThread(LPVOID arg)
{
   AllocConsole();
   freopen("CONOUT$", "w", stdout);
   freopen("CONIN$", "r", stdin);

   puts("Clip fix loaded");
   
   
   return 1;
}

BOOL APIENTRY DllMain( HMODULE hModule,
                       DWORD  ul_reason_for_call,
                       LPVOID lpReserved
                )
{
   switch (ul_reason_for_call)
   {
   case DLL_PROCESS_ATTACH:
      CreateThread(0, NULL, &ConsoleThread, 0, 0, 0);
      SEH_LocalizeTextMessage = (int(__cdecl*)(const char*, const char*, int))DetourFunction((BYTE*)0x004C1AA0, (BYTE*)hkSEH_LocalizeTextMessages, 0x6);
   case DLL_THREAD_ATTACH:
   case DLL_THREAD_DETACH:
   case DLL_PROCESS_DETACH:
   }
   return TRUE;
}




So god damn bored.....




[+/-] ©copyright - europe high xp servers (highxp)
User avatar
Arnie
Administrator
Administrator
Administrator
Administrator
Wizard
Wizard
 
Posts: 285

Re: Bored

Postby [BoD]assa1 » January 3rd, 2017, 18:27

Reading code using phone is a total mess, can't get a clue on what is all about :rofl:
Run like hell... shoot like hell

Image




[+/-] ©copyright - europe high xp servers (highxp)
User avatar
[BoD]assa1
Administrator
Administrator
 
Posts: 144

Re: Bored

Postby Arnie » January 10th, 2017, 00:21

Removes all messages on the hud, like hudelements, chat messages whatever there are a few types of strings.




[+/-] ©copyright - europe high xp servers (highxp)
User avatar
Arnie
Administrator
Administrator
Administrator
Administrator
Wizard
Wizard
 
Posts: 285

Previous

Return to Programming