Uploading keylogger events:
Sometimes questions arise about how to download collected information from a database.
Using a specific question as an example, let’s look at what we can download from the PostgreSQL database, which is used in iBatyr Monitor.
Task: Unload all keystroke module events so that there is event time, machine IP address and workstation name and keyboard input event.
Solution: Below is an example of a script that does this operation and places the output in a file - “out.log”. The command must be entered in the Linux console.
echo "select agent_event.id,agent_agent.last_ip,agent_agent.computer_name,agent_event.local_time,agent_event.text_data from agent_event INNER JOIN agent_agent on agent_event.agent_id = agent_agent.id where event_type_id=1;" | ibatyr sql > out.log
And we will see this output in the text file:
This file can be downloaded from the server from the user’s home folder - via Filezilla or Winscp, by entering the login and password from the console Linux (The default login and password is support\support).
Uploading events using screenshots:
Print all screenshot events:
echo "select agent_event.id,agent_agent.last_ip,agent_agent.computer_name,agent_event.local_time,agent_event.window_title from agent_event INNER JOIN agent_agent on agent_event.agent_id = agent_agent.id where event_type_id=4;" | ibatyr sql > out.log
Print all screenshot events from workstation named «DESKTOP-6UFKRKU»:
echo "select agent_event.id,agent_agent.last_ip,agent_agent.computer_name,agent_event.local_time,agent_event.window_title from agent_event INNER JOIN agent_agent on agent_event.agent_id = agent_agent.id where event_type_id=4 and agent_agent.computer_name='DESKTOP-6UFKRKU';" | ibatyr sql > out.log