Copy a file from Google Drive to a Linux VM

It seems like a simple task, but working with Linux without a graphical shell presents additional challenges. The task was to download the Cobalt Strike backend archive to a Debian VM.

  1. Copy the link to your file to Google Drive. It should look something like this:
https://drive.google.com/file/d/1m33yBі9NhfUTfiY5OynaF_1n4yMz26vU/view?usp=drive_link

2. This link contains the identifier that we copy and will use in the following command FILE_ID = 1m33yBi9NhfUTfiY5OynaF_1n4yMz26vU

3. Substitute the data – FILE_ID and FILE_NAME in the wget command:

    wget --no-check-certificate 'https://docs.google.com/uc?export=download&id=<strong>FILE_ID</strong>' -O <strong>FILE_NAME</strong>

    Here is how the final command looks like:

    wget --no-check-certificate 'https://docs.google.com/uc?export=download&id=1m33yBі9NhfUTfiY5OynaF_1n4yMz26vU' -O server.tar.xz