mythicagents / apfell Goto Github PK
View Code? Open in Web Editor NEWJavaScript for Automation (JXA) macOS agent
JavaScript for Automation (JXA) macOS agent
Ran into an interesting problem. If an apfell payload is generated without specifying proxy information, and the apfell payload is run on say a corporate machine that requires proxy authentication, apfell will not be able to talk out. This sounds obvious. But it WILL work if you comment out the lines containing:
session_config.connectionProxyDictionary = $(this.proxy_dict);
Its like the NSURLSession object is still attempting to use the proxy_dict object, even though its empty. Commenting out the lines appears to allow the apfell JXA to reference the system proxy settings and egress successfully.
The issue here is that during an operation, there would be no way to know the proxy info ahead of time, so requiring the hardcoding of this information in order for apfell to function isn't ideal. Maybe add some logic to check if the proxy_dict object is empty, and if so, it skips the connectionProxyDictionary call? Thanks in advance.
OS: Big Sur
System Version: macOS 11.6.6 (20G624)
Kernel Version: Darwin 20.6.0
Model Name: MacBook Pro
Model Identifier: MacBookPro15,1
Mythic version: v2.3.9
jsimport {"file":"Authentication failed"}
Upon upgrading to v2.3.7
of Mythic and the latest apfell, the clipboard
command no longer works.
help clipboard
shows
Usage Help: clipboard [data]
Description: Get all the types of contents on the clipboard, return specific types, or set the contents of the clipboard. Root has no clipboard!
Command Attributes: {
"spawn_and_injectable": false,
"supported_os": [],
"builtin": false,
"suggested_command": false,
"load_only": false,
"filter_by_build_parameter": {}
}
Parameter Group: "read"
Name: Clipboard-Types
Description: Types of clipboard data to retrieve, defaults to public.utf8-plain-text
Type: Array
Default Value: ["public.utf8-plain-text"]
Required: False
Parameter Group: "write"
Name: data
Description: Data to put on the clipboard
Type: String
Default Value:
Required: False
and trying to run clipboard read
does not work. Not does doing clipboard read public.utf8-plain-text
which should be the default value.
clipboard read
TypeError: undefined is not an object (evaluating 'parsed_params['types'].length')
I cannot get it to work with any Value, including the default. I get the same TYpeError.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.