GithubHelp home page GithubHelp logo

powerstager's People

Contributors

z0noxz 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

powerstager's Issues

cant start it

error show up
:
Traceback (most recent call last):
File "/usr/lib/python3.5/runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "/usr/lib/python3.5/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/root/tools/powerstager/powerstager/powerstager.py", line 19, in
import names
ImportError: No module named 'names'

Suggestion

allow hostnames to be added in lhost variable .

[Feature Request] Auto Persistence and elevation

Can you automatically attempt to elevate privileges using the PowerShell empire bypassuac module and adding a register start up.

In the effort to make the payload as stable as possible and to avoid touching the disk.

Thanks

powerstage issues in windows xp

creating a 32bit exe with command :
powerstager -t win32 -o test.exe -m --lhost (myip) --lport (my listening port)
and running the exe in windows xp 32bit , the file does not establish a connection to the source .

setup.py install

root@pc: /Desktop/gittools/powerstager#._`
/setup.py install
Traceback (most recent call last):
File "./setup.py", line 2, in <module
from setuptools import setup
ImportError: No module named 'setuptools'


i check the code and it seems setup.py requires a folder setuptools
but there is no setuptools in your repos.

created exes not working in windows 7

Hi , i created an exe with your script , and i installed specifically windows 7 to test it out .
The exe is 32bit , and this w7 is also 32bit .
Before this video i opened metasploit console with a listener script but it was unable to gt any connection from this station .
This exe was supposedly to connect to an ip on my local network , and i checked if powershell was installed .
I used tcpview to monitor the outside connection to see if the Exe was trying to connect to my lan ip , but it looks that exe crashes on there is anything wrong on the payload .
i created a video .
On this video there will be a black space , this happened when windows asked me to run app as administrator , but camstudio was unable to catch that .
Let me know if you are aware of this issue , and let me know if you need dome tests from here to check it out what is happening .

here it is the video : https://www.youtube.com/watch?v=vZoSZ7GAH18

I notice that you updated recently powerstager , i install it and it is poping an error .
I believe this error may be related to the c code that mingw will have to compile .
powerstager

Failed to generate exe

VNDL52CWI2.c: In function ‘main’:
VNDL52CWI2.c:16:2: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
for (int _eSprfFF = 0; _eSprfFF < sizeof(_iVIzZpBrbO) / sizeof(_iVIzZpBrbO[0]); _eSprfFF++)
^
VNDL52CWI2.c:16:2: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
VNDL52CWI2.c:26:11: error: redefinition of ‘_eSprfFF’
for (int _eSprfFF = 0; _eSprfFF < sizeof(_WLhBZbZQhea) / sizeof(_WLhBZbZQhea[0]); _eSprfFF++)
^
VNDL52CWI2.c:16:11: note: previous definition of ‘_eSprfFF’ was here
for (int _eSprfFF = 0; _eSprfFF < sizeof(_iVIzZpBrbO) / sizeof(_iVIzZpBrbO[0]); _eSprfFF++)
^
VNDL52CWI2.c:26:2: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
for (int _eSprfFF = 0; _eSprfFF < sizeof(_WLhBZbZQhea) / sizeof(_WLhBZbZQhea[0]); _eSprfFF++)

[i] Shell listener : 1.1.1.1:1111
[i] Output : power.exe
[i] Target : win32
[i] Temp file : _yAzyjcr
[i] Encryption key : tAyOLIJYBKRN8xnc0dJjESK12
[i] Payload size : 1754 bytes
[i] Embedded size : 8584 bytes
[-] Failed to generate : power.exe

Spawn Meterpreter Not Working

I have tried "Local-Spawn-Meterpreter", so many times and listened on msfconsole and set a payload to "windows/meterpreter/reverse_tcp", but i cannot receive any connection from a victim computer. Am i missing something? or should i set a different payload to use that module? Could you help me with this if you have time?

type of powrshell payload

first thanks for this great job, but i wonder witch type of powershell payload i choose with youe script!! .bat or .ps1 or just string.txt or what!! thanks

MINGW INSTALLATION

i get the error: mingw is not installed on your system.

yet i have it installed

update the code of script to support latest mingw gcc versions

got this error :


/ _ \_____      _____ _ __/ _\ |_ __ _  __ _  ___ _ __ 

/ /)/ _ \ \ /\ / / _ \ '_\ | / _ |/ _ |/ _ \ '|
/ / () \ V V / __/ | \ \ || (| | (| | / |
/ _
/ _/_/ _
|
| _/__,|_, |___||
_ __ _ _ |/
| '
| | | |
| |) | |
| | A payload stager using PowerShell
(
) ./ _, | Created by z0noxz
|
| |
_/

Traceback (most recent call last):
File "power.py", line 2962, in
main(sys.argv[1:])
File "power.py", line 2949, in main
compile_source()
File "power.py", line 2694, in compile_source
Print.add_name_value("File signature", hashlib.md5(open(output, "rb").read()).hexdigest(), Print.info)
IOError: [Errno 2] No such file or directory: 'windowsbd'

with gcc-mingw-w64-i686 version 8.3.0

after downgrading to 4.9.1 version in debian jessie repository the problem disapeared .

your script requires all these packages
gcc-mingw-w64-i686
gcc-mingw-w64-x86-64
binutils-mingw-w64-i686
binutils-mingw-w64-x86-64

and right now it will only work if these packages came from jessie repository .

Antivirus picks it up!

As of April 9, 2018... Antivirus now seems to pick up this payload. Any fix? Any way to change the internals so that the payload looks different to AV?.. Thank you... Absolutely love this generator! I came up with this idea myself once. I was glad to find it here, already made! I might HAVE to make it myself, now.

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.