command-line-murders/i-071c8194e55528ee9
by SadServersMore by SadServers
drwx------ 5 root root 4096 Jan 25 19:49 root drwxr-xr-x 22 root root 620 Jan 25 19:49 run lrwxrwxrwx 1 root root 8 Sep 28 2021 sbin -> usr/sbin drwxr-xr-x 2 root root 4096 Sep 28 2021 srv dr-xr-xr-x 13 root root 0 Jan 25 19:48 sys drwxrwxrwt 9 root root 4096 Jan 25 19:49 tmp drwxr-xr-x 14 root root 4096 Sep 28 2021 usr drwxr-xr-x 11 root root 4096 Sep 28 2021 var admin@i-0f29e47a857c873d8:/$ ls opt admin@i-0f29e47a857c873d8:/$ ls run agetty.reload cloud-init dbus initramfs network sshblkid credentials dhclient.ens5.pid lock screen sshchrony crond.pid dhclient6.ens5.pid log sendsigs.omit.d sudchrony-dhcp crond.reboot initctl mount shm sysadmin@i-0f29e47a857c873d8:/$ cd run
paris/i-0f29e47a857c873d8 03:51
by SadServerscrontab [ -u user ] [ -i ] { -e | -l | -r } (default operation is replace, per 1003.2) -e (edit user's crontab) -l (list user's crontab) -r (delete user's crontab) -i (prompt before deleting user's crontab) admin@i-0707c9522c663d8b0:/etc$ crontab -e -u admin no crontab for admin - using an empty one Select an editor. To change later, run 'select-editor'. 1. /bin/nano <---- easiest 2. /usr/bin/vim.basic 3. /usr/bin/vim.tiny Choose 1-3 [1]:
paris/i-0707c9522c663d8b0 02:00
by SadServers-rw-r--r-- 1 root root 0 Feb 10 16:15 setgroups -r--r--r-- 1 root root 0 Feb 10 16:15 smaps -r--r--r-- 1 root root 0 Feb 10 16:15 smaps_rollup -r-------- 1 root root 0 Feb 10 16:15 stack -r--r--r-- 1 root root 0 Feb 10 16:10 stat -r--r--r-- 1 root root 0 Feb 10 16:15 statm -r--r--r-- 1 root root 0 Feb 10 16:10 status -r-------- 1 root root 0 Feb 10 16:15 syscall dr-xr-xr-x 3 root root 0 Feb 10 16:13 task -rw-r--r-- 1 root root 0 Feb 10 16:15 timens_offsets -r--r--r-- 1 root root 0 Feb 10 16:15 timers -rw-rw-rw- 1 root root 0 Feb 10 16:15 timerslack_ns -rw-r--r-- 1 root root 0 Feb 10 16:15 uid_map -r--r--r-- 1 root root 0 Feb 10 16:15 wchan admin@i-09ee8de58a0c22547:/proc/579$
paris/i-09ee8de58a0c22547 06:11
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