Author Archives: Ahmed Tawfik

Unknown's avatar

About Ahmed Tawfik

Cybersecurity Professional, Systems Engineer, OSS & Linux Geek

Script to grab sizes of GCP buckets

Prerequisites: For a simple script that just does the job and gets the sizes of all your buckets: For a more comprehensive script that picks a specific set of buckets and saves the output to a file: That’s it, Enjoy!

Posted in Linux | Tagged , , | Leave a comment

How to enable Python to craft packets and listen to ports less than 1024 without sudo

To be able to craft packets with Scapy, you have to either use sudo or allow setcap for your python environment. I don’t prefer to use sudo when working with my Anaconda environments, so I did the following: sudo setcap … Continue reading

Posted in Linux | Tagged , , | Leave a comment

How to run wireshark/tshark or tcpdump to capture packets inside IPMininet using screen

This has been a bit confusing for some time, but after you run your ipmininet network with Python, you want to capture some packets with wireshark/tshark or tcpdump, here is the way you can do it: Let’s assume we have … Continue reading

Posted in Linux | Tagged , , , , , | Leave a comment

Restart Ethernet Adapter using PowerShell on Windows

In case you are having a problem with your Ethernet adapter, such as not connecting properly or obtaining an IP address when you insert the cable (happens with me sometimes in one of the networks I connect to), you can … Continue reading

Posted in Windows | Tagged , , | Leave a comment

Fix Clipboard Copy/Paste Functionality with Windows 11 Pro Host, VMWare Workstation 16 Pro and Ubuntu 16.04 32-bit Guest

#!/bin/bashprocessString=$(ps -ef | grep ‘[0-9][0-9]:[0-9][0-9]:[0-9][0-9] /usr/bin/vmtoolsd -n vmusr’) # get process info for vmtoolsdtokens=( $processString ) # tokenizekill “${tokens[1]}” # grab pid and kill it/usr/bin/vmtoolsd -n vmusr & > /dev/null 2>&1 # restart vmtoolsd That’s it, Enjoy! Source: https://superuser.com/questions/587767/clipboard-operations-copy-paste-often-stop-working-on-vmware-workstation/1323289#1323289?newreg=6f4bb599af1c44edb3f818c50d344fea

Posted in Linux | Tagged , , | Leave a comment