Definition at line 1246 of file botnet.cpp.
Public Member Functions | |
void | clear () |
s_bot (const s_bot &orig) | |
s_bot () | |
~s_bot () | |
Public Attributes | |
bool | auth_ok |
Authenticated. | |
time_t | awaiting_ready |
string | botip |
IPv4 address of remote bot. | |
string | botname |
Name of remote bot. | |
unsigned short | botport |
Port on remote side. | |
char | buff_from_dcc [1024 *5] |
Buffer from DCC. | |
size_t | buff_pos_from_dcc |
Position in buffer from DCC. | |
size_t | buff_size_from_dcc |
Buffer size from DCC. | |
time_t | chans_to_pull_last_update |
Time of last pull of channel definitions. | |
time_t | chans_to_push_last_update |
Time of last push of channel definitions. | |
bool | clean |
Flag for cleaning: true==structure has been reset. | |
s_bot_command | command_receive_buffer |
Buffer for receiving COMMAND packet. | |
s_bot_control | control_receive_buffer |
Buffer for receiving CONTROL packet. | |
bool | flipped |
true: we have flipper packet for big-endian machines already | |
bool | got_at_least_one_pong |
Have we got at least one pong? | |
int | got_bytes |
For CR LF killing. | |
bool | invoked_from_telnet |
Was this connection invoked from telnet? | |
time_t | last_proc_push |
Timestamp of last tried to push / pushed procedure, or 0 (zero) for not yet. | |
time_t | last_try |
Used for penalty. | |
string | localip |
Local IPv4 address. | |
time_t | next_ping |
When will be the next ping? | |
time_t | procs_to_pull_last_update |
Time of last pull of procedures. | |
time_t | procs_to_push_last_update |
Time of last push of procedures. | |
bool | prv_pulling |
Are we pulling private query definition? | |
s_private | prv_to_pull |
Last pulling private query definition. | |
s_private | prv_to_push |
Last pushing private query definition. | |
time_t | prv_to_push_last_update |
Time of last push of private query definition. | |
vector< s_chan_def_to_pull > | pulling_chans |
List of pulling channel definitions. | |
vector< s_proc_to_pull > | pulling_procs |
List of pulling procedures. | |
vector< s_user_to_pull > | pulling_users |
List of pulling users. | |
vector< s_chan_def_to_push > | pushing_chans |
List of pushing channel definitions. | |
vector< s_proc_to_push > | pushing_procs |
List of pushing procedures. | |
vector< s_user_to_push > | pushing_users |
List of pushing users. | |
size_t | receive_buffer_pos |
Position in buffer. | |
bool | received_bot_auth_1 |
Have we received an authentication? | |
vector< string > | rejected_objects |
List of object that should not be pushed due to remote reject (up-to-date/access denied). | |
string | remote_MD5_password |
Remote MD5 password. | |
bool | remote_pswd_ok |
Remote password is okay. | |
char * | rle_buffer |
Buffer for RLE decompression. | |
unsigned int | rle_buffer_len |
Current lenght of rle_buffer. | |
bool | sent_at_least_one_ping |
Have we sent one ping as pre-handshake? | |
bool | sent_bot_auth_1 |
Was an authentication sent? | |
bool | sent_partyline_users |
Was list of users on partyline sent? | |
s_socket | socket |
Socket handle for connection. | |
SSL * | ssl |
Descriptor of SSL connection. | |
bool | ssl_connection |
Is this a SSL connection? | |
time_t | start_awaiting_pong |
When we had started to await pong? (zero for none). | |
int | supported_proto_version |
Highest supported protocol. | |
string | unlink_proc |
Unlink procedure to call on unlink. | |
bool | unlink_proc_called |
Was unlink procedure called? | |
time_t | users_to_pull_last_update |
Time of last pull of users. | |
time_t | users_to_push_last_update |
Time of last push of users. | |
map< string, string > | vars |
List of local variables at execution of "link" command (only valid if invoked_from_telnet == false). | |
bool | waiting |
waiting to last_try expires | |
bool | was_linked |
For log message / used when linked connection broken. |
|
Definition at line 1375 of file botnet.cpp. References clear(). 01375 { 01376 clear(); 01377 }
Here is the call graph for this function: ![]() |
|
|
Definition at line 1444 of file botnet.cpp. References rle_buffer, and rle_buffer_len. 01444 { 01445 free(rle_buffer); 01446 rle_buffer=NULL; 01447 rle_buffer_len=0; 01448 }
|
|
|
Authenticated.
Definition at line 1284 of file botnet.cpp. Referenced by botnet_link(), botnet_received_data_from_telnet(), clear(), and s_bot(). |
|
Definition at line 1259 of file botnet.cpp. Referenced by clear(). |
|
IPv4 address of remote bot.
Definition at line 1251 of file botnet.cpp. Referenced by botnet_link(), botnet_received_data_from_telnet(), clear(), and s_bot(). |
|
Name of remote bot.
Definition at line 1249 of file botnet.cpp. Referenced by botnet_link(), botnet_push_chan(), botnet_push_proc(), botnet_push_prv(), botnet_push_user(), botnet_receive(), botnet_received_data_from_telnet(), botnet_send_command(), botnet_send_control(), clear(), and s_bot(). |
|
Port on remote side.
Definition at line 1252 of file botnet.cpp. Referenced by botnet_link(), botnet_received_data_from_telnet(), clear(), and s_bot(). |
|
Buffer from DCC.
Definition at line 1275 of file botnet.cpp. Referenced by botnet_received_data_from_telnet(), clear(), and s_bot(). |
|
Position in buffer from DCC.
Definition at line 1277 of file botnet.cpp. Referenced by botnet_received_data_from_telnet(), clear(), and s_bot(). |
|
Buffer size from DCC.
Definition at line 1276 of file botnet.cpp. Referenced by botnet_link(), botnet_received_data_from_telnet(), clear(), and s_bot(). |
|
Time of last pull of channel definitions.
Definition at line 1306 of file botnet.cpp. |
|
Time of last push of channel definitions.
Definition at line 1309 of file botnet.cpp. |
|
Flag for cleaning: true==structure has been reset.
Definition at line 1247 of file botnet.cpp. Referenced by botnet_received_data_from_telnet(), clear(), and s_bot(). |
|
Buffer for receiving COMMAND packet.
Definition at line 1268 of file botnet.cpp. Referenced by botnet_link(), botnet_receive(), and s_bot(). |
|
Buffer for receiving CONTROL packet.
Definition at line 1269 of file botnet.cpp. Referenced by botnet_link(), botnet_receive(), and s_bot(). |
|
true: we have flipper packet for big-endian machines already
Definition at line 1273 of file botnet.cpp. Referenced by botnet_receive(), and clear(). |
|
Have we got at least one pong?
Definition at line 1266 of file botnet.cpp. Referenced by clear(). |
|
For CR LF killing.
Definition at line 1282 of file botnet.cpp. Referenced by botnet_link(), botnet_received_data_from_telnet(), clear(), and s_bot(). |
|
Was this connection invoked from telnet?
Definition at line 1281 of file botnet.cpp. Referenced by botnet_link(), botnet_received_data_from_telnet(), clear(), and s_bot(). |
|
Timestamp of last tried to push / pushed procedure, or 0 (zero) for not yet.
Definition at line 1314 of file botnet.cpp. Referenced by botnet_push_proc(), and clear(). |
|
Used for penalty.
Definition at line 1279 of file botnet.cpp. Referenced by botnet_link(), botnet_received_data_from_telnet(), clear(), and s_bot(). |
|
Local IPv4 address.
Definition at line 1250 of file botnet.cpp. Referenced by botnet_link(), botnet_received_data_from_telnet(), clear(), and s_bot(). |
|
When will be the next ping?
Definition at line 1287 of file botnet.cpp. |
|
Time of last pull of procedures.
Definition at line 1300 of file botnet.cpp. |
|
Time of last push of procedures.
Definition at line 1303 of file botnet.cpp. |
|
Are we pulling private query definition?
Definition at line 1319 of file botnet.cpp. Referenced by s_bot(). |
|
Last pulling private query definition.
Definition at line 1318 of file botnet.cpp. Referenced by s_bot(). |
|
Last pushing private query definition.
Definition at line 1317 of file botnet.cpp. Referenced by s_bot(). |
|
Time of last push of private query definition.
Definition at line 1316 of file botnet.cpp. |
|
List of pulling channel definitions.
Definition at line 1307 of file botnet.cpp. |
|
List of pulling procedures.
Definition at line 1301 of file botnet.cpp. |
|
List of pulling users.
Definition at line 1295 of file botnet.cpp. |
|
List of pushing channel definitions.
Definition at line 1310 of file botnet.cpp. |
|
List of pushing procedures.
Definition at line 1304 of file botnet.cpp. |
|
List of pushing users.
Definition at line 1298 of file botnet.cpp. |
|
Position in buffer.
Definition at line 1270 of file botnet.cpp. Referenced by botnet_link(), botnet_receive(), botnet_received_data_from_telnet(), clear(), and s_bot(). |
|
Have we received an authentication?
Definition at line 1264 of file botnet.cpp. Referenced by botnet_link(), botnet_received_data_from_telnet(), clear(), and s_bot(). |
|
List of object that should not be pushed due to remote reject (up-to-date/access denied).
Definition at line 1312 of file botnet.cpp. Referenced by clear(). |
|
Remote MD5 password.
Definition at line 1261 of file botnet.cpp. Referenced by botnet_link(), botnet_received_data_from_telnet(), clear(), and s_bot(). |
|
Remote password is okay.
Definition at line 1285 of file botnet.cpp. Referenced by botnet_link(), botnet_received_data_from_telnet(), clear(), and s_bot(). |
|
Buffer for RLE decompression.
Definition at line 1271 of file botnet.cpp. Referenced by botnet_receive(), clear(), s_bot(), and ~s_bot(). |
|
Current lenght of rle_buffer.
Definition at line 1272 of file botnet.cpp. Referenced by botnet_receive(), clear(), s_bot(), and ~s_bot(). |
|
Have we sent one ping as pre-handshake?
Definition at line 1265 of file botnet.cpp. Referenced by clear(). |
|
Was an authentication sent?
Definition at line 1263 of file botnet.cpp. Referenced by botnet_link(), botnet_received_data_from_telnet(), clear(), and s_bot(). |
|
Was list of users on partyline sent?
Definition at line 1321 of file botnet.cpp. |
|
Socket handle for connection.
Definition at line 1256 of file botnet.cpp. Referenced by botnet_link(), botnet_receive(), botnet_received_data_from_telnet(), botnet_send_command(), botnet_send_control(), clear(), and s_bot(). |
|
Descriptor of SSL connection.
Definition at line 1258 of file botnet.cpp. Referenced by botnet_link(), botnet_receive(), botnet_received_data_from_telnet(), botnet_send_command(), botnet_send_control(), clear(), and s_bot(). |
|
Is this a SSL connection?
Definition at line 1257 of file botnet.cpp. Referenced by botnet_link(), botnet_receive(), botnet_received_data_from_telnet(), botnet_send_command(), botnet_send_control(), clear(), and s_bot(). |
|
When we had started to await pong? (zero for none).
Definition at line 1288 of file botnet.cpp. |
|
Highest supported protocol.
Definition at line 1254 of file botnet.cpp. Referenced by botnet_push_chan(), botnet_push_prv(), botnet_push_user(), and clear(). |
|
Unlink procedure to call on unlink.
Definition at line 1290 of file botnet.cpp. Referenced by botnet_link(), botnet_received_data_from_telnet(), clear(), and s_bot(). |
|
Was unlink procedure called?
Definition at line 1292 of file botnet.cpp. Referenced by botnet_link(), botnet_received_data_from_telnet(), clear(), and s_bot(). |
|
Time of last pull of users.
Definition at line 1294 of file botnet.cpp. |
|
Time of last push of users.
Definition at line 1297 of file botnet.cpp. |
|
List of local variables at execution of "link" command (only valid if invoked_from_telnet == false).
Definition at line 1291 of file botnet.cpp. Referenced by botnet_link(), clear(), and s_bot(). |
|
waiting to last_try expires
Definition at line 1280 of file botnet.cpp. |
|
For log message / used when linked connection broken.
Definition at line 1283 of file botnet.cpp. Referenced by botnet_link(), botnet_received_data_from_telnet(), clear(), and s_bot(). |