Perl Reverse Shell Script

There are quite a few reverse shell examples available to you on the Internet.  You can also find a large collection under /usr/share/webshells on the Kali Linux distro.  That said, the other day, I need a small perl script to insert into an application which I could trigger.  A one liner wouldn’t work and the more elaborate examples also wouldn’t work.  I came up with the following from something I found in a search, hopefully you can put this to good use. 

Read more: Perl Reverse Shell Script

"Hash Sum mismatch"

Kind of an odd issue.  Ran:

sudo apt-get update

And was presented with:

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/precise/main/source/Sources  Hash Sum mismatch

Read more: "Hash Sum mismatch"

Windows: Can't Drag and Drop

Sometimes you come across something weird and this was definitely one of those instances.  I honestly don't know what I did to get here but I found myself unable to drag and drop icons.  I attempted to drag an item to the recycle bin but no such luck.

Read more: Windows: Can't Drag and Drop

Windows Filenames Exceeding 255 Characters

The maximum length filename (which includes the full path) cannot exceed 255 characters.  Just to be clear, that includes the directory name, spaces, punctuation or anything else that would appear in the address bar.  For example:

C:\Users\user\Desktop\filename.txt

The above is 34 characters in length.

Read more: Windows Filenames Exceeding 255 Characters

Locating Processes and Ports

I attempted to install a software package on a server and the installation failed due to an existing application using the desired port.  Since it was a non-standard port, I didn't know what was using the port but I needed to find it and either kill it or move it.

Let's say for example, we're looking for the process living on port 3389 (the remote desktop / terminal services port).  First, we run:

netstat -ano | findstr :3389

The return should present you with several lines.  One of them should look like this:

TCP   192.168.1.100:3389    0.0.0.0    LISTENING    [processid]

Read more: Locating Processes and Ports

RDP to Linux

We like to use the best operating for the job and we use a mixture of Windows, Mac and Linux.  Our typical Linux installation is a virtualized system and it does not include a desktop; we do all of the administration from the command line.

The other day, we were asked to propose a solution which installs on Linux but the installation must be performed from a Linux desktop.  No problem, we installed the desktop package with the following command:

Read more: RDP to Linux