Get all the types of contents on the clipboard, return specific types, or set the contents of the clipboard.
Summary
Get all the types of contents on the clipboard, return specific types, or set the contents of the clipboard.
Root does NOT have a clipboard
Needs Admin: False
Version: 1
Author: @its_a_feature_
Arguments
types
Description: Types of clipboard data to retrieve, defaults to public.utf8-plain-text
Required Value: False
Default Value: None
data
Description: Data to put on the clipboard
Required Value: False
Default Value: None
Usage
Reading Clipboard
Causes a Popup
clipboard
This will read the plaintext data on the clipboard and give information about the other keys that are available to read. If you then issue the command again with the keys you desire, the contents of those will be returned as well. This can be an extremely large amount of data as users copy folders, files, images, etc on their clipboard. All of this is available to you, but isn’t returned by default.
Writing Clipboard
Causes a Popup
clipboard
Set the data field to something other than empty to write to the clipboard.
No Popup Option
clipboard data
MITRE ATT&CK Mapping
T1115
Detailed Summary
This uses Objective C API calls to read all the types available on the general clipboard for the current user. The clipboard on macOS has a lot more data than just what you copy. All of that data is collected and returned in a JSON blob of key:base64(data). To do this, we use this JavaScript code:
let pb = $.NSPasteboard.generalPasteboard;let types = pb.types.js;let clipboard = {};for(let i = 0; i < types.length; i++){ let typejs = types[i].js; clipboard[typejs] = pb.dataForType(types[i]); if(clipboard[typejs].js !== undefined){ clipboard[typejs] = clipboard[typejs].base64EncodedStringWithOptions(0).js; }else{ clipboard[typejs] = ""; }}
There’s a browserscript for this function that’ll return all of the keys and the plaintext data if it’s there.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/schema.json","name":"SpecterOps Open Source","colors":{"primary":"#2c2677","light":"#5465ff","dark":"#2c2677"},"logo":{"light":"https://mintcdn.com/specteropsdocs/k1yx6gbUDEwWUifq/logo/light.svg?fit=max\u0026auto=format\u0026n=k1yx6gbUDEwWUifq\u0026q=85\u0026s=c7134dc672345b82c85209dadeb0e8ba","dark":"https://mintcdn.com/specteropsdocs/k1yx6gbUDEwWUifq/logo/dark.svg?fit=max\u0026auto=format\u0026n=k1yx6gbUDEwWUifq\u0026q=85\u0026s=309680ef77c8d2d797a28dfe77531efb"},"favicon":"https://mintcdn.com/specteropsdocs/BBK0AWoMY3kd6fe3/favicon.png?fit=max\u0026auto=format\u0026n=BBK0AWoMY3kd6fe3\u0026q=85\u0026s=5678964ce347f372c752439aaa9d9b29","appearance":{"default":"dark"},"background":{"decoration":"gradient"},"navbar":{"links":[{"href":"https://github.com/SpecterOps","label":"Toolkit Hub"}],"primary":{"type":"button","label":"Contact Us","href":"https://specterops.io/contact/"}},"footer":{"socials":{"x":"https://x.com/specterops","website":"https://infosec.exchange/@SpecterOps","github":"https://github.com/SpecterOps","linkedin":"https://www.linkedin.com/company/specterops","slack":"https://slack.specterops.io/","instagram":"https://www.instagram.com/specterops.io","youtube":"https://www.youtube.com/channel/UCWMKKqCCQkUjU8dIyiL1yhQ"}},"integrations":{"plausible":{"domain":"docs.specterops.io"}},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"specteropsdocs","hasAudioNarration":false,"actualSubdomain":"specteropsdocs","customDomains":["docs.specterops.io"],"gitSource":{"type":"github","owner":"specterops","repo":"specteropsdocs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":"","_id":"6b10c7749ffae5051c407879"},"entitlements":{"AI_CHAT":{"status":"DISABLED"},"REMOVE_BRANDING":{"status":"DISABLED"},"CONTEXTUAL_FEEDBACK":{"status":"DISABLED"},"CODE_SNIPPET_FEEDBACK":{"status":"DISABLED"},"WEB_MCP":{"status":"DISABLED"},"NARRATION":{"status":"DISABLED"}},"buildId":"6ae942dc773fefe711103e1d:success","clientVersion":"0.0.4428","searchFilterCounts":[{"language":"default","tag":"Commands","count":306},{"language":"default","tag":"Documentation","count":287},{"language":"default","tag":"Overview","count":142},{"language":"default","tag":"Seatbelt","count":116},{"language":"default","tag":"Home","count":90},{"language":"default","tag":"Development","count":84},{"language":"default","tag":"Techniques","count":66},{"language":"default","tag":"Features","count":54},{"language":"default","tag":"Attack Techniques","count":39},{"language":"default","tag":"Defensive Techniques","count":33}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"auth-vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[{"filePath":"nemesis-docs/docs/stylesheets/colors.css","content":"[data-md-color-scheme=\"nemesis-dark\"]{color-scheme:dark;--md-primary-fg-color: #262730;--mod-hue: 210;--md-default-fg-color: hsla(var(--md-hue), 15%, 90%, 0.82);--md-default-fg-color--light: hsla(var(--md-hue), 15%, 90%, 0.56);--md-default-fg-color--lighter: hsla(var(--md-hue), 15%, 90%, 0.32);--md-default-fg-color--lightest: hsla(var(--md-hue), 15%, 90%, 0.12);--md-default-bg-color: #0E1116;--md-default-bg-color--light: hsla(var(--md-hue), 15%, 14%, 0.54);--md-default-bg-color--lighter: hsla(var(--md-hue), 15%, 14%, 0.26);--md-default-bg-color--lightest: hsla(var(--md-hue), 15%, 14%, 0.07);--md-code-fg-color: hsla(var(--md-hue), 18%, 86%, 0.82);--md-code-bg-color: hsla(var(--md-hue), 15%, 18%, 1);--md-code-hl-number-color: #619a8c;--md-code-hl-special-color: var(--md-code-hl-number-color);--md-code-hl-function-color: #5382db;--md-code-hl-string-color: #61a242;--md-code-hl-operator-color: #965822;--md-code-hl-name-color: #e4e4e4;--md-code-hl-keyword-color: #4b74c6;--md-code-hl-punctuation-color: #808080;--md-code-hl-constant-color: hsla(250, 62%, 70%, 1);--md-code-hl-comment-color: rgb(98, 103, 119);--md-code-hl-variable-color: #ffffff;--md-code-hl-color: hsla(#{hex2hsl($clr-blue-a400)}, 1);--md-code-hl-color--light: hsla(#{hex2hsl($clr-blue-a400)}, 0.1);--md-code-hl-generic-color: var(--md-default-fg-color--light);--md-typeset-color: var(--md-default-fg-color);--md-typeset-a-color: #498AFB;--md-typeset-kbd-color: hsla(var(--md-hue), 15%, 90%, 0.12);--md-typeset-kbd-accent-color: hsla(var(--md-hue), 15%, 90%, 0.2);--md-typeset-kbd-border-color: hsla(var(--md-hue), 15%, 14%, 1);--md-typeset-mark-color: hsla(#{hex2hsl($clr-blue-a200)}, 0.3);--md-typeset-table-color: hsla(var(--md-hue), 15%, 95%, 0.12);--md-typeset-table-color--light: hsla(var(--md-hue), 15%, 95%, 0.035);--md-admonition-fg-color: var(--md-default-fg-color);--md-admonition-bg-color: var(--md-default-bg-color);--md-footer-bg-color: hsla(var(--md-hue), 15%, 10%, 0.87);--md-footer-bg-color--dark: hsla(var(--md-hue), 15%, 8%, 1);--md-shadow-z1:\n 0 #{px2rem(4px)} #{px2rem(10px)} hsla(0, 0%, 0%, 0.05),\n 0 0 #{px2rem(1px)} hsla(0, 0%, 0%, 0.1);--md-shadow-z2:\n 0 #{px2rem(4px)} #{px2rem(10px)} hsla(0, 0%, 0%, 0.25),\n 0 0 #{px2rem(1px)} hsla(0, 0%, 0%, 0.25);--md-shadow-z3:\n 0 #{px2rem(4px)} #{px2rem(10px)} hsla(0, 0%, 0%, 0.4),\n 0 0 #{px2rem(1px)} hsla(0, 0%, 0%, 0.35);img[src$=\"#only-light\"],\n img[src$=\"#gh-light-mode-only\"] {\n display: none;\n }}[data-md-color-scheme=\"nemesis-light\"]{color-scheme:light;--md-primary-fg-color: #262730;--md-hue: 225deg;--md-default-fg-color: hsla(0, 0%, 0%, 0.87);--md-default-fg-color--light: hsla(0, 0%, 0%, 0.54);--md-default-fg-color--lighter: hsla(0, 0%, 0%, 0.32);--md-default-fg-color--lightest: hsla(0, 0%, 0%, 0.07);--md-default-bg-color: hsla(0, 0%, 100%, 1);--md-default-bg-color--light: hsla(0, 0%, 100%, 0.7);--md-default-bg-color--lighter: hsla(0, 0%, 100%, 0.3);--md-default-bg-color--lightest: hsla(0, 0%, 100%, 0.12);--md-code-fg-color: hsla(200, 18%, 26%, 1);--md-code-bg-color: hsla(200, 0%, 96%, 1);--md-code-hl-color: hsla(#{hex2hsl($clr-blue-a200)}, 1);--md-code-hl-color--light: hsla(#{hex2hsl($clr-blue-a200)}, 0.1);--md-code-hl-number-color: hsla(0, 67%, 50%, 1);--md-code-hl-special-color: hsla(340, 83%, 47%, 1);--md-code-hl-function-color: hsla(291, 45%, 50%, 1);--md-code-hl-constant-color: hsla(250, 63%, 60%, 1);--md-code-hl-keyword-color: hsla(219, 54%, 51%, 1);--md-code-hl-string-color: hsla(150, 63%, 30%, 1);--md-code-hl-name-color: var(--md-code-fg-color);--md-code-hl-operator-color: var(--md-default-fg-color--light);--md-code-hl-punctuation-color: var(--md-default-fg-color--light);--md-code-hl-comment-color: var(--md-default-fg-color--light);--md-code-hl-generic-color: var(--md-default-fg-color--light);--md-code-hl-variable-color: var(--md-default-fg-color--light);--md-typeset-color: var(--md-default-fg-color);--md-typeset-a-color: #498AFB;--md-typeset-del-color: hsla(6, 90%, 60%, 0.15);--md-typeset-ins-color: hsla(150, 90%, 44%, 0.15);--md-typeset-kbd-color: hsla(0, 0%, 98%, 1);--md-typeset-kbd-accent-color: hsla(0, 100%, 100%, 1);--md-typeset-kbd-border-color: hsla(0, 0%, 72%, 1);--md-typeset-mark-color: hsla(#{hex2hsl($clr-yellow-a200)}, 0.5);--md-typeset-table-color: hsla(0, 0%, 0%, 0.12);--md-typeset-table-color--light: hsla(0, 0%, 0%, 0.035);--md-admonition-fg-color: var(--md-default-fg-color);--md-admonition-bg-color: var(--md-default-bg-color);--md-warning-fg-color: hsla(0, 0%, 0%, 0.87);--md-warning-bg-color: hsla(60, 100%, 80%, 1);--md-footer-fg-color: hsla(0, 0%, 100%, 1);--md-footer-fg-color--light: hsla(0, 0%, 100%, 0.7);--md-footer-fg-color--lighter: hsla(0, 0%, 100%, 0.45);--md-footer-bg-color: hsla(0, 0%, 0%, 0.87);--md-footer-bg-color--dark: hsla(0, 0%, 0%, 0.32);--md-shadow-z1:\n 0 #{px2rem(4px)} #{px2rem(10px)} hsla(0, 0%, 0%, 0.05),\n 0 0 #{px2rem(1px)} hsla(0, 0%, 0%, 0.1);--md-shadow-z2:\n 0 #{px2rem(4px)} #{px2rem(10px)} hsla(0, 0%, 0%, 0.1),\n 0 0 #{px2rem(1px)} hsla(0, 0%, 0%, 0.25);--md-shadow-z3:\n 0 #{px2rem(4px)} #{px2rem(10px)} hsla(0, 0%, 0%, 0.2),\n 0 0 #{px2rem(1px)} hsla(0, 0%, 0%, 0.35);img[src$=\"#only-dark\"],\n img[src$=\"#gh-light-mode-only\"] {\n display: none;\n }}"},{"filePath":"style.css","content":".card img{height:200px;object-fit:contain}.mermaid{display:flex;justify-content:center;text-align:center}"}]}
{"page":{"pagePath":"mythic-agents/apfell-docs/commands/clipboard","slug":"/mythic-agents/apfell-docs/commands/clipboard","pageMetadata":{"title":"clipboard","description":"Get all the types of contents on the clipboard, return specific types, or set the contents of the clipboard.","href":"/mythic-agents/apfell-docs/commands/clipboard","hidden":false},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Get all the types of contents on the clipboard, return specific types, or set the contents of the clipboard.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,em:`em`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`summary`,children:`Summary`}),`\n`,_jsx(_components.p,{children:`Get all the types of contents on the clipboard, return specific types, or set the contents of the clipboard.`}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`Root does `,_jsx(_components.strong,{children:`NOT`}),` have a clipboard`]})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Needs Admin: False`}),`\n`,_jsx(_components.li,{children:`Version: 1`}),`\n`,_jsx(_components.li,{children:`Author: @its_a_feature_`}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`arguments`,children:`Arguments`}),`\n`,_jsx(Heading,{level:`4`,id:`types`,children:`types`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Description: Types of clipboard data to retrieve, defaults to `,_jsx(_components.code,{children:`public.utf8-plain-text`})]}),`\n`,_jsx(_components.li,{children:`Required Value: False`}),`\n`,_jsx(_components.li,{children:`Default Value: None`}),`\n`]}),`\n`,_jsx(Heading,{level:`4`,id:`data`,children:`data`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Description: Data to put on the clipboard`}),`\n`,_jsx(_components.li,{children:`Required Value: False`}),`\n`,_jsx(_components.li,{children:`Default Value: None`}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`usage`,children:`Usage`}),`\n`,_jsx(Heading,{level:`3`,id:`reading-clipboard`,children:`Reading Clipboard`}),`\n`,_jsx(Heading,{level:`4`,id:`causes-a-popup`,children:`Causes a Popup`}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`clipboard`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(_components.p,{children:`This will read the plaintext data on the clipboard and give information about the other keys that are available to read. If you then issue the command again with the keys you desire, the contents of those will be returned as well. This can be an extremely large amount of data as users copy folders, files, images, etc on their clipboard. All of this is available to you, but isn’t returned by default.`}),`\n`,_jsx(Heading,{level:`3`,id:`writing-clipboard`,children:`Writing Clipboard`}),`\n`,_jsx(Heading,{level:`4`,id:`causes-a-popup-2`,children:`Causes a Popup`}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`clipboard`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsxs(_components.p,{children:[`Set the `,_jsx(_components.code,{children:`data`}),` field to something other than empty to write to the clipboard.`]}),`\n`,_jsx(Heading,{level:`4`,id:`no-popup-option`,children:`No Popup Option`}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`clipboard data`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Heading,{level:`2`,id:`mitre-att\u0026ck-mapping`,children:`MITRE ATT\u0026CK Mapping`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`T1115`}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`detailed-summary`,children:`Detailed Summary`}),`\n`,_jsxs(_components.p,{children:[`This uses Objective C API calls to read all the types available on the general clipboard for the current user. The clipboard on macOS has a lot more data than `,_jsx(_components.em,{children:`just`}),` what you copy. All of that data is collected and returned in a JSON blob of key:base64(data). To do this, we use this JavaScript code:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`12`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`12`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`let`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` pb`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` $`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`NSPasteboard`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`generalPasteboard`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`let`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` types`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` pb`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`types`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`js`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`let`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` clipboard`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {};`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`for`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`let`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` i`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`; `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`i`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` types`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:`length`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`; `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`i`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`++`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`){`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` let`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` typejs`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` types`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`i`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`].`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`js`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` clipboard`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`typejs`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`] `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` pb`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`dataForType`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`types`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`i`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`clipboard`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`typejs`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`].`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`js`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` !==`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` undefined`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`){`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` clipboard`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`typejs`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`] `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` clipboard`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`typejs`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`].`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`base64EncodedStringWithOptions`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`).`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`js`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`else`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` clipboard`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`typejs`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`] `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`There’s a browserscript for this function that’ll return all of the keys and the plaintext data if it’s there.`})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"clipboard","description":"Get all the types of contents on the clipboard, return specific types, or set the contents of the clipboard.","href":"/mythic-agents/apfell-docs/commands/clipboard","hidden":false}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Summary","slug":"summary","depth":2,"children":[{"title":"Arguments","slug":"arguments","depth":3,"children":[]},{"title":"types","slug":"types","depth":4,"children":[]},{"title":"data","slug":"data","depth":4,"children":[]}]},{"title":"Usage","slug":"usage","depth":2,"children":[{"title":"Reading Clipboard","slug":"reading-clipboard","depth":3,"children":[]},{"title":"Causes a Popup","slug":"causes-a-popup","depth":4,"children":[]},{"title":"Writing Clipboard","slug":"writing-clipboard","depth":3,"children":[]},{"title":"Causes a Popup","slug":"causes-a-popup-2","depth":4,"children":[]},{"title":"No Popup Option","slug":"no-popup-option","depth":4,"children":[]}]},{"title":"MITRE ATT\u0026CK Mapping","slug":"mitre-att\u0026ck-mapping","depth":2,"children":[]},{"title":"Detailed Summary","slug":"detailed-summary","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"specteropsdocs","siteName":"SpecterOps Open Source","title":"clipboard - SpecterOps Open Source","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{"Home":{"href":"/","matchLevel":4},"Mythic":{"href":"/mythic-docs/home","matchLevel":4},"Ghostwriter":{"href":"/ghostwriter-docs/home","matchLevel":4},"SharpSCCM":{"href":"/sharpsccm-docs/overview","matchLevel":4},"SCCMHunter":{"href":"/sccmhunter-docs/overview","matchLevel":4},"Misconfiguration Manager":{"href":"/misconfiguration-manager-docs/README","matchLevel":4},"Nemesis":{"href":"/nemesis-docs/docs","matchLevel":4},"GhostPack":{"href":"/ghostpack-docs","matchLevel":4},"AtlasReaper":{"href":"/atlasreaper-docs/overview","matchLevel":4},"Phisherman's Tacklebox":{"href":"/cuddlephish-docs/overview","matchLevel":4},"Merlin":{"href":"/merlin-docs/introduction","matchLevel":4},"Mythic Agents":{"href":"/mythic-agents","matchLevel":4},"Mythic Agent: Apollo":{"href":"/mythic-agents/apollo-docs/documentation-payload/apollo/_index","matchLevel":4},"Mythic Agent: Poseidon":{"href":"/mythic-agents/poseidon-docs/commands/clipboard","matchLevel":1},"Mythic Agent: Apfell":{"href":"/mythic-agents/apfell-docs/commands/clipboard","matchLevel":0},"Mythic Agent: Arachne":{"href":"/mythic-agents/arachne-docs/home","matchLevel":4},"Mythic Agent: Bloodhound":{"href":"/mythic-agents/bloodhound-agent-docs/home","matchLevel":4},"Mythic Agent: Nemesis":{"href":"/mythic-agents/nemesis-agent-docs/home","matchLevel":4},"Mythic Agent: Ghostwriter":{"href":"/mythic-agents/ghostwriter-agent-docs/home","matchLevel":4},"Mythic Agent: Sage":{"href":"/mythic-agents/sage-docs/home","matchLevel":4},"Mythic Agent: Forge":{"href":"/mythic-agents/forge-docs/home","matchLevel":4},"Mythic Agent: Merlin":{"href":"/mythic-agents/merlin-agent-docs/home","matchLevel":4}},"firstHrefInLanguage":{}},"originalFileLocation":"mythic-agents/apfell-docs/commands/clipboard.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"dark\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Get all the types of contents on the clipboard, return specific types, or set the contents of the clipboard.\">\u003cmeta data-mint-head name=\"application-name\" content=\"SpecterOps Open Source\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/specteropsdocs/U_J_JcUXDT3Kya4Z/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/specteropsdocs/U_J_JcUXDT3Kya4Z/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/specteropsdocs/U_J_JcUXDT3Kya4Z/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/specteropsdocs/U_J_JcUXDT3Kya4Z/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/specteropsdocs/U_J_JcUXDT3Kya4Z/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/specteropsdocs/U_J_JcUXDT3Kya4Z/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/specteropsdocs/U_J_JcUXDT3Kya4Z/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/specteropsdocs/U_J_JcUXDT3Kya4Z/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/specteropsdocs/U_J_JcUXDT3Kya4Z/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"clipboard - SpecterOps Open Source\">\u003cmeta data-mint-head property=\"og:description\" content=\"Get all the types of contents on the clipboard, return specific types, or set the contents of the clipboard.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"SpecterOps Open Source\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.specterops.io/mythic-agents/apfell-docs/commands/clipboard\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://specteropsdocs.mintlify.site/_mintlify/api/og/v2?division=Documentation\u0026amp;title=clipboard\u0026amp;description=Get+all+the+types+of+contents+on+the+clipboard%2C+return+specific+types%2C+or+set+the+contents+of+the+clipboard.\u0026amp;theme=2f89e571138c7739835777ca\u0026amp;signature=cd12049eab8f693ea8a5b65fb7cdc58343c2c78acfaf2f7e06d543eecacf5877\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"clipboard - SpecterOps Open Source\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Get all the types of contents on the clipboard, return specific types, or set the contents of the clipboard.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://specteropsdocs.mintlify.site/_mintlify/api/og/v2?division=Documentation\u0026amp;title=clipboard\u0026amp;description=Get+all+the+types+of+contents+on+the+clipboard%2C+return+specific+types%2C+or+set+the+contents+of+the+clipboard.\u0026amp;theme=2f89e571138c7739835777ca\u0026amp;signature=cd12049eab8f693ea8a5b65fb7cdc58343c2c78acfaf2f7e06d543eecacf5877\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/specteropsdocs/U_J_JcUXDT3Kya4Z/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"SpecterOps Open Source\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#2c2677\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.specterops.io/mythic-agents/apfell-docs/commands/clipboard\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/mythic-agents/apfell-docs/commands/clipboard.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.specterops.io/#organization\",\"name\":\"SpecterOps Open Source\",\"url\":\"https://docs.specterops.io\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/specteropsdocs/k1yx6gbUDEwWUifq/logo/light.svg?fit=max\u0026auto=format\u0026n=k1yx6gbUDEwWUifq\u0026q=85\u0026s=c7134dc672345b82c85209dadeb0e8ba\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.specterops.io#website\",\"name\":\"SpecterOps Open Source\",\"url\":\"https://docs.specterops.io\",\"publisher\":{\"@id\":\"https://docs.specterops.io/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.specterops.io/mythic-agents/apfell-docs/commands/clipboard#webpage\",\"url\":\"https://docs.specterops.io/mythic-agents/apfell-docs/commands/clipboard\",\"name\":\"clipboard\",\"description\":\"Get all the types of contents on the clipboard, return specific types, or set the contents of the clipboard.\",\"isPartOf\":{\"@id\":\"https://docs.specterops.io#website\"}},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.specterops.io/mythic-agents/apfell-docs/commands/clipboard#article\",\"headline\":\"clipboard\",\"name\":\"clipboard\",\"description\":\"Get all the types of contents on the clipboard, return specific types, or set the contents of the clipboard.\",\"url\":\"https://docs.specterops.io/mythic-agents/apfell-docs/commands/clipboard\",\"mainEntityOfPage\":{\"@id\":\"https://docs.specterops.io/mythic-agents/apfell-docs/commands/clipboard#webpage\"},\"publisher\":{\"@id\":\"https://docs.specterops.io/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.specterops.io#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"SpecterOps Open Source\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"SpecterOps Open Source\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/mythic-agents/apfell-docs/commands/clipboard.md","siteName":"SpecterOps Open Source","nav":{"global":null,"versions":[{"version":"Home","pages":[{"title":"Home","href":"/"}]},{"version":"Mythic","pages":[{"title":"Mythic","href":"/mythic-docs/home"}]},{"version":"Ghostwriter","pages":[{"title":"Ghostwriter","href":"/ghostwriter-docs/home"}]},{"version":"SharpSCCM","pages":[{"title":"SharpSCCM","href":"/sharpsccm-docs/overview"}]},{"version":"SCCMHunter","pages":[{"title":"SCCMHunter","href":"/sccmhunter-docs/overview"}]},{"version":"Misconfiguration Manager","pages":[{"title":"Misconfiguration Manager","href":"/misconfiguration-manager-docs/README"}]},{"version":"Nemesis","pages":[{"title":"Nemesis","href":"/nemesis-docs/docs"}]},{"version":"GhostPack","pages":[{"title":"GhostPack","href":"/ghostpack-docs"}]},{"version":"AtlasReaper","pages":[{"title":"AtlasReaper","href":"/atlasreaper-docs/overview"}]},{"version":"Phisherman's Tacklebox","pages":[{"title":"Phisherman's Tacklebox","href":"/cuddlephish-docs/overview"}]},{"version":"Merlin","pages":[{"title":"Merlin","href":"/merlin-docs/introduction"}]},{"version":"Mythic Agents","pages":[{"title":"Mythic Agents","href":"/mythic-agents"}]},{"version":"Mythic Agent: Apollo","pages":[{"title":"Mythic Agent: Apollo","href":"/mythic-agents/apollo-docs/documentation-payload/apollo/_index"}]},{"version":"Mythic Agent: Poseidon","pages":[{"title":"Mythic Agent: Poseidon","href":"/mythic-agents/poseidon-docs/commands/clipboard"}]},{"version":"Mythic Agent: Apfell","tabs":[{"tab":"Overview","icon":"book-open","pages":[{"title":"Overview","href":"/mythic-agents/apfell-docs/home"}]},{"tab":"Commands","icon":"swords","pages":[{"title":"Commands","href":"/mythic-agents/apfell-docs/commands"},{"title":"add_user","href":"/mythic-agents/apfell-docs/commands/add_user"},{"title":"cat","href":"/mythic-agents/apfell-docs/commands/cat"},{"title":"cd","href":"/mythic-agents/apfell-docs/commands/cd"},{"title":"chrome_bookmarks","href":"/mythic-agents/apfell-docs/commands/chrome_bookmarks"},{"title":"chrome_js","href":"/mythic-agents/apfell-docs/commands/chrome_js"},{"title":"chrome_tabs","description":"This uses AppleEvents to list information about all of the open tabs in all of the open Chrome instances.","href":"/mythic-agents/apfell-docs/commands/chrome_tabs"},{"title":"clipboard","href":"/mythic-agents/apfell-docs/commands/clipboard"},{"title":"current_user","description":"This uses AppleEvents or ObjectiveC APIs to get information about the current user.","href":"/mythic-agents/apfell-docs/commands/current_user"},{"title":"download","href":"/mythic-agents/apfell-docs/commands/download"},{"title":"exit","href":"/mythic-agents/apfell-docs/commands/exit"},{"title":"get_config","href":"/mythic-agents/apfell-docs/commands/get_config"},{"title":"hostname","href":"/mythic-agents/apfell-docs/commands/hostname"},{"title":"iTerm","href":"/mythic-agents/apfell-docs/commands/iTerm"},{"title":"ifconfig","href":"/mythic-agents/apfell-docs/commands/ifconfig"},{"title":"jscript","href":"/mythic-agents/apfell-docs/commands/jscript"},{"title":"jsimport","href":"/mythic-agents/apfell-docs/commands/jsimport"},{"title":"jsimport_call","href":"/mythic-agents/apfell-docs/commands/jsimport_call"},{"title":"launchapp","href":"/mythic-agents/apfell-docs/commands/launchapp"},{"title":"list_apps","href":"/mythic-agents/apfell-docs/commands/list_apps"},{"title":"list_users","href":"/mythic-agents/apfell-docs/commands/list_users"},{"title":"load","href":"/mythic-agents/apfell-docs/commands/load"},{"title":"ls","href":"/mythic-agents/apfell-docs/commands/ls"},{"title":"persist_emond","href":"/mythic-agents/apfell-docs/commands/persist_emond"},{"title":"persist_folderaction","href":"/mythic-agents/apfell-docs/commands/persist_folderaction"},{"title":"persist_launch","href":"/mythic-agents/apfell-docs/commands/persist_launch"},{"title":"persist_loginitem_allusers","href":"/mythic-agents/apfell-docs/commands/persist_loginitem_allusers"},{"title":"plist","href":"/mythic-agents/apfell-docs/commands/plist"},{"title":"prompt","href":"/mythic-agents/apfell-docs/commands/prompt"},{"title":"pwd","href":"/mythic-agents/apfell-docs/commands/pwd"},{"title":"rm","href":"/mythic-agents/apfell-docs/commands/rm"},{"title":"run","href":"/mythic-agents/apfell-docs/commands/run"},{"title":"run_perl","href":"/mythic-agents/apfell-docs/commands/run_perl"},{"title":"run_python","href":"/mythic-agents/apfell-docs/commands/run_python"},{"title":"run_ruby","href":"/mythic-agents/apfell-docs/commands/run_ruby"},{"title":"screenshot","href":"/mythic-agents/apfell-docs/commands/screenshot"},{"title":"security_info","href":"/mythic-agents/apfell-docs/commands/security_info"},{"title":"shell","href":"/mythic-agents/apfell-docs/commands/shell"},{"title":"shell_elevated","href":"/mythic-agents/apfell-docs/commands/shell_elevated"},{"title":"sleep","href":"/mythic-agents/apfell-docs/commands/sleep"},{"title":"spawn_download_cradle","href":"/mythic-agents/apfell-docs/commands/spawn_download_cradle"},{"title":"spawn_drop_and_execute","href":"/mythic-agents/apfell-docs/commands/spawn_drop_and_execute"},{"title":"system_info","href":"/mythic-agents/apfell-docs/commands/system_info"},{"title":"terminals_read","href":"/mythic-agents/apfell-docs/commands/terminals_read"},{"title":"terminals_send","href":"/mythic-agents/apfell-docs/commands/terminals_send"},{"title":"test_password","href":"/mythic-agents/apfell-docs/commands/test_password"},{"title":"upload","href":"/mythic-agents/apfell-docs/commands/upload"}]},{"tab":"C2 Profiles","icon":"phone","pages":[{"title":"C2 Profiles","href":"/mythic-agents/apfell-docs/c2_profiles"}]}]},{"version":"Mythic Agent: Arachne","pages":[{"title":"Mythic Agent: Arachne","href":"/mythic-agents/arachne-docs/home"}]},{"version":"Mythic Agent: Bloodhound","pages":[{"title":"Mythic Agent: Bloodhound","href":"/mythic-agents/bloodhound-agent-docs/home"}]},{"version":"Mythic Agent: Nemesis","pages":[{"title":"Mythic Agent: Nemesis","href":"/mythic-agents/nemesis-agent-docs/home"}]},{"version":"Mythic Agent: Ghostwriter","pages":[{"title":"Mythic Agent: Ghostwriter","href":"/mythic-agents/ghostwriter-agent-docs/home"}]},{"version":"Mythic Agent: Sage","pages":[{"title":"Mythic Agent: Sage","href":"/mythic-agents/sage-docs/home"}]},{"version":"Mythic Agent: Forge","pages":[{"title":"Mythic Agent: Forge","href":"/mythic-agents/forge-docs/home"}]},{"version":"Mythic Agent: Merlin","pages":[{"title":"Mythic Agent: Merlin","href":"/mythic-agents/merlin-agent-docs/home"}]}]},"basePath":"","title":"clipboard - SpecterOps Open Source","deploymentId":"dpl_4dgnk6TA5fUgboKHTvWWyeqm3idh","buildId":"dpl_4dgnk6TA5fUgboKHTvWWyeqm3idh","dynamics":[],"chunks":[]}