Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

developing a custom payload "agent" for android #358

Closed
somaliz opened this issue Dec 26, 2023 · 7 comments
Closed

developing a custom payload "agent" for android #358

somaliz opened this issue Dec 26, 2023 · 7 comments
Labels
agent dev questions about agent development

Comments

@somaliz
Copy link

somaliz commented Dec 26, 2023

Hi, this is more of a question and not an issue, im using this repo https://github.com/MythicMeta/ExampleContainers.git in particular the python example, i want to create a custom payload for android is there a way to enforce SupportedOS.Android and use it with the http c2 profile ? basically what im trying to achieve is manipulate an AndroidManifest and in a build container recompile an apk and sign it. is that doable! :) .. i'd love any input or suggestions

Thanks <3

@its-a-feature
Copy link
Owner

Hey! Great question :)

I'm actually working on updating the docs and that example, so this is a perfect time.

When you define your agent, you can simply change this line https://github.com/MythicMeta/ExampleContainers/blob/main/Payload_Type/python_services/apfell/agent_functions/builder.py#L13 to be supported_os = ["android"] and that'll work to make an android OS option. The example already supports http and dynamichttp, but if you want to say that your agent will only support the basic http, then change this line https://github.com/MythicMeta/ExampleContainers/blob/main/Payload_Type/python_services/apfell/agent_functions/builder.py#L18 to be c2_profiles = ["http"].

@its-a-feature
Copy link
Owner

Also make sure you're checking out https://docs.mythic-c2.net/customizing/payload-type-development/first-steps. If you have requests for examples or more documentation around a certain topic, just let me know!

@its-a-feature its-a-feature added the agent dev questions about agent development label Dec 26, 2023
@wir3casp3r
Copy link

Hey! I'd like to customize Athena further, mainly to change its signature further since I sometimes use it for RT engagements and have found it to be a superbly good agent. Is there some documentation that facilitates this sort of customization?

I tried to have a look into the .csproj but found it to be slightly daunting because there's a lot of moving parts haha

@checkymander
Copy link

Hey! I'd like to customize Athena further, mainly to change its signature further since I sometimes use it for RT engagements and have found it to be a superbly good agent. Is there some documentation that facilitates this sort of customization?

I tried to have a look into the .csproj but found it to be slightly daunting because there's a lot of moving parts haha

Thanks! I'm actually in the middle of a rewrite that should solve some of the problems you're seeing. You can check it out now on the rewrite branch which currently only has http and smb working, but I'm trying to finish up the rewrite so it can at least be used by people this week.

@wir3casp3r
Copy link

Oh hey! great job dude! will definitely test it out at some point. Cheers!

@its-a-feature
Copy link
Owner

@somaliz - how's the development going?

@its-a-feature
Copy link
Owner

I'm gonna go ahead and close this, but if you run into issues with your development, please open a new issue and we can get it sorted out :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
agent dev questions about agent development
Projects
None yet
Development

No branches or pull requests

4 participants