Installing Python Pefile and UPX on Amazon Linux AMI (Especially for SET)

If your application (e.g. SET) requires python pefile or UPX, you can not install them easily using Yum package manager on Amazon Linux AMI because Amazon’s default repositories do not contain these packages. However, you can install them as described below:

Installing Python Pefile

  • Download pefile zip file (current version as this post is posted)
    • wget https://pefile.googlecode.com/files/pefile-1.2.10-114.zip
  • Unzip the downloaded zip file
    •  unzip pefile-1.2.10-114.zip
  • Change directory to unzipped folder and install the pefile
    • cd pefile-1.2.10-114
    • python setup.py install

Installing UPX

  • Get the UPX rpm package (for 32 bit)
    •  rpm -ivh http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.i686.rpm
  • Clean the repository and install the UPX using yum package manager
    • yum clean all
    • yum install upx.i686

It took some time for me to get them installed on Amazon Linux AMI, so I hope you can save some time by reading this post.

This entry was posted in Bulut Bilişim - Cloud Computing, Linux, Penetration Testing and tagged , , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *