paris/i-04b1619a31d169ee7
by SadServersMore by SadServers
# Establish a connection to RabbitMQ connection = pika.BlockingConnection(parameters) channel = connection.channel() # Declare a queue channel.queue_declare(queue=QUEUE) # Publish a message to the queue channel.basic_publish(exchange='', routing_key=QUEUE, body=MESSAGE) print("Message sent to RabbitMQ") # Close the connection connection.close() admin@i-0ffa8982dfb2f3217:~$ grep RMQ_QUEUE
chennai/i-0ffa8982dfb2f3217 17:53
by SadServersadmin@i-0afae0e70e6636201:~$ ls -alh total 5.1G drwxr-xr-x 7 admin admin 4.0K Nov 24 20:43 . drwxr-xr-x 3 root root 4.0K Sep 17 16:44 .. drwx------ 3 admin admin 4.0K Sep 17 17:15 .ansible -rw-r--r-- 1 admin admin 220 Aug 4 2021 .bash_logout -rw-r--r-- 1 admin admin 3.5K Aug 4 2021 .bashrc drwxr-xr-x 3 admin admin 4.0K Nov 24 20:43 .config -rw-r--r-- 1 admin admin 807 Aug 4 2021 .profile drwx------ 2 admin admin 4.0K Sep 17 16:44 .ssh drwxr-xr-x 2 admin root 4.0K Sep 17 17:28 agent drwxr-xr-x 2 admin root 4.0K Nov 24 20:43 data -rw-r--r-- 1 root root 5.0G Sep 17 17:28 datafile -rwxr-xr-x 1 admin root 2.2M Sep 17 17:28 kihei admin@i-0afae0e70e6636201:~$
kihei/i-0afae0e70e6636201 00:52
by SadServers# The program is typically sudo, sudoers.so, sudoreplay or visudo. # # Subsystems vary based on the program; "all" matches all subsystems. # Priority may be crit, err, warn, notice, diag, info, trace or debug. # Multiple subsystem@priority may be specified, separated by a comma. # #Debug sudo /var/log/sudo_debug all@debug #Debug sudoers.so /var/log/sudoers_debug all@debug admin@i-020f08eb573cc1e85:~$ ls agent webserver.py admin@i-020f08eb573cc1e85:~$ cat /etc/sudo sudo.conf sudo_logsrvd.conf sudoers sudoers.d/ admin@i-020f08eb573cc1e85:~$ cat /etc/sudoers cat: /etc/sudoers: Permission denied admin@i-020f08eb573cc1e85:~$