Skip to content

3. Agent setup

kleiton0x00 edited this page Jan 18, 2023 · 5 revisions

I have developed the agents in both Python and C# language. Both do the same task, however the python's version is much faster and stable compared to the C# one.

Compatibility

The python version works on both Linux and Windows, whereas the C# version works only in Windows (since it is compiled in exe format).

Setup the Python agent

Setting up the python agent is very easy, you only need to change the values on line 103-109 with the credentials you generated from the previous steps:

  • client_id
  • secret
  • reddit username
  • reddit password
  • subreddit (the same as the teamserver's one)
  • xor key (the same as the teamserver's one)

Setup the C# agent

In this version, you only need to change the values on line 56-60 with the credentials you generated from the previous steps:

  • reddit username
  • reddit password
  • subreddit (the same as the teamserver's one)
  • xor key (the same as the teamserver's one)

When compiling the C# agent (you will need Visual Studio installed), it is necessary to have installed the required Libraries: RedditSharp. In order to do so, please follow the next steps:

  1. Click on Project tab and click on Manage NuGet Packages...
    install_vs_library

  2. Click on Browse and search for RedditSharp. Install the version 1.1.13:
    Screenshot from 2022-12-11 11-29-32

  3. Change the credentials located in Program.cs, line 56-60 and build the project.

  4. Once the project is built, the compiled exe will be located in: /bin/Release/ILMerge/RedditAgent.exe

If any error happens, feel free to open a new issue.

Clone this wiki locally