Coder Social home page Coder Social logo

Comments (13)

EgeBalci avatar EgeBalci commented on August 25, 2024

This looks like you are having problem with powershell not amber :) Try to load meterpreter with psh payloads and check if powershell is functioning properly.

from amber.

stevenfonz avatar stevenfonz commented on August 25, 2024

Yes. I have checked the meterpreter with PSH payload and the powershell is functioning properly. Can you help to share the Windows machine and ransomware sample for reproducing the scenario?

from amber.

EgeBalci avatar EgeBalci commented on August 25, 2024

Sorry i can't share the ransomware sample because of moral reasons but you can find alot of open source ransomware on github try following ones;

https://github.com/Refreshers/Ransomware-C
https://github.com/Siegfried148/Ransomware-C
https://github.com/popescuadi/Ransomware
https://github.com/8noobs/rerosomware

If you give me more details about your problem such as what EXE file did you used i may help more.

from amber.

stevenfonz avatar stevenfonz commented on August 25, 2024

Hi, can you share your email address with so that I can send you the sample.

from amber.

EgeBalci avatar EgeBalci commented on August 25, 2024

[email protected]

from amber.

stevenfonz avatar stevenfonz commented on August 25, 2024

sent. thank you in advance!

from amber.

EgeBalci avatar EgeBalci commented on August 25, 2024

Ok now i know what is wrong :) Unfortunately currently Amber only supports EXE files that are compiled with common language compilers such as GCC, G++, VisualStudio , Clang it also works well with the Golang and Rust binaries but it does not support EXE files that are generated by python source :/ pyinstaller or py2exe does not generate regular EXE files, future updates on Amber will add support to C# binaries but the Delphi/Python typed EXE support is not in the picture right now :)

from amber.

stevenfonz avatar stevenfonz commented on August 25, 2024

I see. Thanks for pointing that out. May I know the sample below that you provided earlier, Do they work with Amber?

https://github.com/Refreshers/Ransomware-C
https://github.com/Siegfried148/Ransomware-C
https://github.com/popescuadi/Ransomware
https://github.com/8noobs/rerosomware

from amber.

EgeBalci avatar EgeBalci commented on August 25, 2024

Yes, these are C/C++ projects every C/C++ code that you can compile should work with amber.

from amber.

stevenfonz avatar stevenfonz commented on August 25, 2024

Thanks. Just to confirm, are we able to install amber on Kali?

I tried to install and run a quick test, i see ASLR not supported.

Version: 1.0.0

Source: github.com/egebalci/Amber

[] File: /root/Desktop/a.exe
[
] Staged: true
[] Key Size: 7
[
] IAT: false
[*] Verbose: true

[] Checking requirments...
[
] Opening input file...
[] Analyzing PE file...
[-] ASLR not supported :(
[x] Using Fixed stub...
[
] File Size: 380531 byte
[] Machine: 0x14C
[
] Magic: 0x10B
[] Subsystem: 0x3
[
] Image Base: 0x400000
[] Size Of Image: 0x5F000
[
] Export Table: 0x400000
[] Import Table: 0x408000
[
] Base Relocation Table: 0x400000
[] Import Address Table: 0x40815C
[
] Assembling reflective payload...
[*] Mapping PE file...

from amber.

EgeBalci avatar EgeBalci commented on August 25, 2024

Sure you can install it on kali. ASLR support is about the EXE file that you are trying to pack. It means if your EXE file does not have ASLR support it might cause some errors when using --staged option but you can still pack it witout ASLR support.

from amber.

stevenfonz avatar stevenfonz commented on August 25, 2024

Yeah, you are right... everytime I execute the code on target machine, I see the powershell crash when the staged send. may I know what caused ASLR not supported? What command I should use to compile the source code?

from amber.

EgeBalci avatar EgeBalci commented on August 25, 2024

It depends on what compiler you are using. Visual Studio by default adds the relocation data inside EXE file if you are using visual studio you don't need to do any extra things. If you are using mingw or Clang you need to add -Wl,--dynamicbase,--export-all-symbols parameters while compiling.

from amber.

Related Issues (20)

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.