• Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Webserver for HBRelog

    Discussion in 'Uncataloged' started by backtrack90, Nov 23, 2012.

    1. backtrack90

      backtrack90 New Member

      Joined:
      Oct 1, 2012
      Messages:
      3
      Likes Received:
      0
      Trophy Points:
      0
      Hey everyone,
      I made a little webserver implementation for HBRelog, originally just for me, but why not share =)

      Its not very well written and has a lot of workarounds, but because its no critical part of the process I think its fine.

      You dont have to edit anything in the HBRelog sourcecode, just add one line, to start the server class.
      He reads out most of the HBR variables (except username and password i think i got anything) and provides it php.

      Actually its just a DIY-Apache-like-thing with a php.exe rerouting, with cookies, session and stuff.
      I added a array $_HB[...] which provides all the necessary HBR data.

      --Install--
      Download the .rar, and either just take the precompiled exe (its the HBR version from today, 23 Nov '12) or you compile it on your own.

      Download HBRelog from HighVoltz SVN and extract it somewhere.
      Add the Webserver folder into it and run the sln in Visual Studio, you need to add it there to the project too (its excluded).
      In program.cs add "HBWebServer.StartWebServer(8081, true);" above the "var app = new Application();" in line 53.
      The first parameter is the port, the second is a special screenshot flag. If it is set true, everytime you open /tmp.png a screenshot is taken, so tmp.png is always the current screen.

      Then you can compile it.
      Maybe you need to set a new reference to Honorbuddy.exe and delete the "SubWCRev.exe" in the compile options in the preferences.
      (I hope I forgot nothing)

      --To Run--
      You have to download PHP for Windows (PHP For Windows: Binaries and sources Releases) and extract in the folder where your HBRelog.exe is.
      Extract the html.rar in the HBRelog.exe folder, too.
      At the end you have a structure like:

      /html/index.php
      /php/<more stuff>
      /php/php-cgi.exe
      /php/<more stuff>
      /Logs/<more stuff>
      /HBRelog.exe
      /<more stuff>

      Feel free to edit all files and blame me for my bad c# skills =/

      I hope HighVoltz has no problem with that, I cant send him a message. If there is anything, message me!

      (Sorry for my bad English, I am German ;-) )
       

      Attached Files:

    Share This Page