ls # List current files/folders in the current directorymget * # Download everythingstatus # Show FTP statussyst # Gather information about the systemdebug # List backend commandsLIST # List everythingtrace # Trace packetsquit # Stop the connectionbye # Stop the connectionwget -m --no-passive ftp://anonymous:anonymous@<ip>
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"0101isnothacking","description":"0101isnothacking is Omar Al Haffar’s personal cybersecurity knowledge base and professional portfolio. It brings together hands-on penetration testing notes, lab write-ups, and quick references on topics like network discovery and Windows and Linux file transfers. The site also showcases personal security projects, research, and Omar’s progress toward the Hack The Box Certified Penetration Testing Specialist (CPTS) certification.","colors":{"primary":"#EE2B2B","light":"#ED512A","dark":"#E51E1B"},"logo":{"light":"https://mintcdn.com/non-9fcb5a21/HOOoG0gS2JYQjyl6/images/chess-knight-svgrepo-com.svg?fit=max\u0026auto=format\u0026n=HOOoG0gS2JYQjyl6\u0026q=85\u0026s=c5883336741dd533c179e47527f7c38e","dark":"https://mintcdn.com/non-9fcb5a21/HOOoG0gS2JYQjyl6/images/chess-knight-svgrepo-com.svg?fit=max\u0026auto=format\u0026n=HOOoG0gS2JYQjyl6\u0026q=85\u0026s=c5883336741dd533c179e47527f7c38e","href":"https://www.0101isnothacking.nl/"},"favicon":{"light":"https://mintcdn.com/non-9fcb5a21/HOOoG0gS2JYQjyl6/images/chess-knight-svgrepo-com.svg?fit=max\u0026auto=format\u0026n=HOOoG0gS2JYQjyl6\u0026q=85\u0026s=c5883336741dd533c179e47527f7c38e","dark":"https://mintcdn.com/non-9fcb5a21/HOOoG0gS2JYQjyl6/images/chess-knight-svgrepo-com.svg?fit=max\u0026auto=format\u0026n=HOOoG0gS2JYQjyl6\u0026q=85\u0026s=c5883336741dd533c179e47527f7c38e"},"footer":{"socials":{"github":"https://github.com/0101isnothacking","linkedin":"https://www.linkedin.com/in/omar-al-haffar-8b78733b6"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"non-9fcb5a21","hasAudioNarration":false,"actualSubdomain":"non-9fcb5a21","customDomains":["www.0101isnothacking.nl"],"gitSource":{"type":"github","owner":"0101isnothacking","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":"","_id":"6b0176f45462524ef35d95e9"},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6b022fdce49cbc075efb5b7a","clientVersion":"0.0.4271","searchFilterCounts":[{"language":"default","tag":"Important notes for PNT","count":27},{"language":"default","tag":"Information gathering","count":23},{"language":"default","tag":"Active","count":19},{"language":"default","tag":"Passive","count":4},{"language":"default","tag":"FIle transfer","count":2},{"language":"default","tag":"Important knowledge","count":2},{"language":"default","tag":"My_projects","count":2},{"language":"default","tag":"Research","count":2},{"language":"default","tag":"Linux","count":1},{"language":"default","tag":"Windows","count":1}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","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":"workos-onboarding","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":"site-roles","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":"assistant-v5","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":"workos-sso-scim","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":"workos-signup","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":"workos-enabled","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":"sso-setup-deadline-banner","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":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"important-notes-for-pnt/information-gathering/active/ftp","slug":"/important-notes-for-pnt/information-gathering/active/ftp","pageMetadata":{"title":"FTP enumeration","description":"FTP enumeration and file transfer commands for ports 20 and 21.","href":"/important-notes-for-pnt/information-gathering/active/ftp"},"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: \"FTP enumeration and file transfer commands for ports 20 and 21.\"\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`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,Heading,Note,Table}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`FTP (File Transfer Protocol) uses ports 20 and 21.`}),`\n`,_jsx(Heading,{level:`2`,id:`important-information`,children:`Important information`}),`\n`,_jsxs(_components.p,{children:[`Response code `,_jsx(_components.strong,{children:`220`}),` means the connection is successfully established.`]}),`\n`,_jsx(Heading,{level:`2`,id:`check-default-open-port`,children:`Check default open port`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,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:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`nmap`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -p20,21`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`i`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`p`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`>`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`banner-grabbing`,children:`Banner grabbing`}),`\n`,_jsx(Note,{children:_jsx(_components.p,{children:`Sometimes you have to wait 10 to 60 seconds to get the banner.`})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`shellscript`,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:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`netcat`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -nv`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`i`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`p`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`>`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 21`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`nmap`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -sV`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -p20,21`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`i`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`p`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`>`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`nxc`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ftp`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`i`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`p`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`>`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`sudo`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` nmap`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --script=ftp-syst.nse`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -p20,21`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`i`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`p`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`>`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`check-anonymous-login`,children:`Check anonymous login`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`shellscript`,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:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`sudo`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` nmap`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --script=ftp-anon.nse`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -p20,21`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`i`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`p`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`>`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`ftp`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`i`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`p`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`>`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# login with anonymous:anonymous`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`msfconsole`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -q`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -x`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"use auxiliary/scanner/ftp/ftp_anonymous\"`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`check-files-and-folders`,children:`Check files and folders`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,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:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`ls`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -all`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`download-and-upload-files`,children:`Download and upload files`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,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:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`mget`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`file-or-folde`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`r`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`>`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`put`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`file-or-folde`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`r`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`>`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`dangerous-settings`,children:`Dangerous settings`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Setting`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`anonymous_enable=YES`})}),_jsx(_components.td,{children:`Allowing anonymous login?`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`anon_upload_enable=YES`})}),_jsx(_components.td,{children:`Allowing anonymous to upload files?`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`anon_mkdir_write_enable=YES`})}),_jsx(_components.td,{children:`Allowing anonymous to create new directories?`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`no_anon_password=YES`})}),_jsx(_components.td,{children:`Do not ask anonymous for password?`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`anon_root=/home/username/ftp`})}),_jsx(_components.td,{children:`Directory for anonymous.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`write_enable=YES`})}),_jsx(_components.td,{children:`Allowed to change the content of a file.`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`useful-commands`,children:`Useful commands`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`10`,language:`shellscript`,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:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`10`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`ls`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # List current files/folders in the current directory`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`mget`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` *`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # Download everything`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`status`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # Show FTP status`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`syst`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # Gather information about the system`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`debug`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # List backend commands`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`LIST`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # List everything`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`trace`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # Trace packets`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`quit`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # Stop the connection`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`bye`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # Stop the connection`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`wget`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -m`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --no-passive`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ftp://anonymous:anonymous@`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`i`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`p`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`>`})]}),`\n`]})})})]})}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":"FTP enumeration","description":"FTP enumeration and file transfer commands for ports 20 and 21.","href":"/important-notes-for-pnt/information-gathering/active/ftp"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Important information","slug":"important-information","depth":2,"children":[]},{"title":"Check default open port","slug":"check-default-open-port","depth":2,"children":[]},{"title":"Banner grabbing","slug":"banner-grabbing","depth":2,"children":[]},{"title":"Check anonymous login","slug":"check-anonymous-login","depth":2,"children":[]},{"title":"Check files and folders","slug":"check-files-and-folders","depth":2,"children":[]},{"title":"Download and upload files","slug":"download-and-upload-files","depth":2,"children":[]},{"title":"Dangerous settings","slug":"dangerous-settings","depth":2,"children":[]},{"title":"Useful commands","slug":"useful-commands","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"non-9fcb5a21","siteName":"0101isnothacking","title":"FTP enumeration - 0101isnothacking","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-21T11:44:17.211Z","originalFileLocation":"important-notes-for-pnt/information-gathering/active/ftp.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=\"system\"}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=\"FTP enumeration and file transfer commands for ports 20 and 21.\">\u003cmeta data-mint-head name=\"application-name\" content=\"0101isnothacking\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/non-9fcb5a21/1Af_aiyVir2KOZdL/_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/non-9fcb5a21/1Af_aiyVir2KOZdL/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/non-9fcb5a21/1Af_aiyVir2KOZdL/_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/non-9fcb5a21/1Af_aiyVir2KOZdL/_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/non-9fcb5a21/1Af_aiyVir2KOZdL/_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/non-9fcb5a21/1Af_aiyVir2KOZdL/_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/non-9fcb5a21/1Af_aiyVir2KOZdL/_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/non-9fcb5a21/1Af_aiyVir2KOZdL/_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/non-9fcb5a21/1Af_aiyVir2KOZdL/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"FTP enumeration - 0101isnothacking\">\u003cmeta data-mint-head property=\"og:description\" content=\"FTP enumeration and file transfer commands for ports 20 and 21.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"0101isnothacking\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://www.0101isnothacking.nl/important-notes-for-pnt/information-gathering/active/ftp\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://non-9fcb5a21.mintlify.site/_mintlify/api/og/v2?division=Active\u0026amp;title=FTP+enumeration\u0026amp;description=FTP+enumeration+and+file+transfer+commands+for+ports+20+and+21.\u0026amp;theme=9f163c6da6b3fd1730f01b04\u0026amp;signature=1ab0926070dc04654a3e5ad84e6aa31c792228007ebf2e5222cecadae049a2ae\">\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=\"FTP enumeration - 0101isnothacking\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"FTP enumeration and file transfer commands for ports 20 and 21.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://non-9fcb5a21.mintlify.site/_mintlify/api/og/v2?division=Active\u0026amp;title=FTP+enumeration\u0026amp;description=FTP+enumeration+and+file+transfer+commands+for+ports+20+and+21.\u0026amp;theme=9f163c6da6b3fd1730f01b04\u0026amp;signature=1ab0926070dc04654a3e5ad84e6aa31c792228007ebf2e5222cecadae049a2ae\">\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/non-9fcb5a21/1Af_aiyVir2KOZdL/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"0101isnothacking\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#EE2B2B\">\u003clink data-mint-head rel=\"canonical\" href=\"https://www.0101isnothacking.nl/important-notes-for-pnt/information-gathering/active/ftp\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/important-notes-for-pnt/information-gathering/active/ftp.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://www.0101isnothacking.nl/#organization\",\"name\":\"0101isnothacking\",\"url\":\"https://www.0101isnothacking.nl\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/non-9fcb5a21/HOOoG0gS2JYQjyl6/images/chess-knight-svgrepo-com.svg?fit=max\u0026auto=format\u0026n=HOOoG0gS2JYQjyl6\u0026q=85\u0026s=c5883336741dd533c179e47527f7c38e\"}},{\"@type\":\"WebSite\",\"@id\":\"https://www.0101isnothacking.nl#website\",\"name\":\"0101isnothacking\",\"url\":\"https://www.0101isnothacking.nl\",\"publisher\":{\"@id\":\"https://www.0101isnothacking.nl/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://www.0101isnothacking.nl/important-notes-for-pnt/information-gathering/active/ftp#webpage\",\"url\":\"https://www.0101isnothacking.nl/important-notes-for-pnt/information-gathering/active/ftp\",\"name\":\"FTP enumeration\",\"description\":\"FTP enumeration and file transfer commands for ports 20 and 21.\",\"dateModified\":\"2026-11-21T11:44:17.211Z\",\"isPartOf\":{\"@id\":\"https://www.0101isnothacking.nl#website\"},\"breadcrumb\":{\"@id\":\"https://www.0101isnothacking.nl/important-notes-for-pnt/information-gathering/active/ftp#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://www.0101isnothacking.nl/important-notes-for-pnt/information-gathering/active/ftp#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Important notes for PNT\",\"item\":\"https://www.0101isnothacking.nl/important-notes-for-pnt/f-ile-transfer/windows/commands\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Information gathering\",\"item\":\"https://www.0101isnothacking.nl/important-notes-for-pnt/information-gathering/active/host-discovery\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Active\",\"item\":\"https://www.0101isnothacking.nl/important-notes-for-pnt/information-gathering/active/host-discovery\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"FTP enumeration\",\"item\":\"https://www.0101isnothacking.nl/important-notes-for-pnt/information-gathering/active/ftp\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://www.0101isnothacking.nl/important-notes-for-pnt/information-gathering/active/ftp#article\",\"headline\":\"FTP enumeration\",\"name\":\"FTP enumeration\",\"description\":\"FTP enumeration and file transfer commands for ports 20 and 21.\",\"url\":\"https://www.0101isnothacking.nl/important-notes-for-pnt/information-gathering/active/ftp\",\"mainEntityOfPage\":{\"@id\":\"https://www.0101isnothacking.nl/important-notes-for-pnt/information-gathering/active/ftp#webpage\"},\"dateModified\":\"2026-11-21T11:44:17.211Z\",\"publisher\":{\"@id\":\"https://www.0101isnothacking.nl/#organization\"},\"isPartOf\":{\"@id\":\"https://www.0101isnothacking.nl#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"0101isnothacking\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"0101isnothacking\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/important-notes-for-pnt/information-gathering/active/ftp.md","siteName":"0101isnothacking","nav":{"global":null,"pages":[{"group":"./","pages":[{"title":"Introduction","href":"/index"}]},{"group":"Important notes for PNT","pages":[{"group":"FIle transfer","pages":[{"group":"Windows","pages":[{"title":"Windows file transfer","sidebarTitle":"Commands","href":"/important-notes-for-pnt/f-ile-transfer/windows/commands"}]},{"group":"Linux","pages":[{"title":"Linux file transfer","sidebarTitle":"Commands","href":"/important-notes-for-pnt/f-ile-transfer/linux/commands"}]}]},{"group":"Information gathering","pages":[{"group":"Active","pages":[{"title":"Host discovery","href":"/important-notes-for-pnt/information-gathering/active/host-discovery"},{"title":"Port scanning with Nmap","href":"/important-notes-for-pnt/information-gathering/active/port-scanning-using-nmap"},{"title":"HTTP/S enumeration","href":"/important-notes-for-pnt/information-gathering/active/https"},{"title":"IMAP/POP3 enumeration","href":"/important-notes-for-pnt/information-gathering/active/imap-pop3"},{"title":"IPMI enumeration","href":"/important-notes-for-pnt/information-gathering/active/ipmi"},{"title":"Kerberos enumeration","href":"/important-notes-for-pnt/information-gathering/active/kerberos"},{"title":"LDAP enumeration","href":"/important-notes-for-pnt/information-gathering/active/ldap"},{"title":"MSSQL enumeration","href":"/important-notes-for-pnt/information-gathering/active/mssql"},{"title":"MySQL enumeration","href":"/important-notes-for-pnt/information-gathering/active/mysql"},{"title":"NFS enumeration","href":"/important-notes-for-pnt/information-gathering/active/nfs"},{"title":"Oracle TNS enumeration","href":"/important-notes-for-pnt/information-gathering/active/oracle-tns"},{"title":"RDP enumeration","href":"/important-notes-for-pnt/information-gathering/active/rdp"},{"title":"SMB enumeration","href":"/important-notes-for-pnt/information-gathering/active/smb"},{"title":"SMTP enumeration","href":"/important-notes-for-pnt/information-gathering/active/smtp"},{"title":"SNMP enumeration","href":"/important-notes-for-pnt/information-gathering/active/snmp"},{"title":"SSH enumeration","href":"/important-notes-for-pnt/information-gathering/active/ssh"},{"title":"WinRM enumeration","href":"/important-notes-for-pnt/information-gathering/active/winrm"},{"title":"DNS enumeration","description":"DNS enumeration commands and zone transfer techniques for port 53.","href":"/important-notes-for-pnt/information-gathering/active/dns"},{"title":"FTP enumeration","href":"/important-notes-for-pnt/information-gathering/active/ftp"}]},{"group":"Passive","pages":[{"title":"Email discovery","description":"Find and validate email addresses, and check breach data during passive reconnaissance.","href":"/important-notes-for-pnt/information-gathering/passive/email-discovery"},{"title":"Google dorking","href":"/important-notes-for-pnt/information-gathering/passive/google-dorking"},{"title":"Subdomain hunting","href":"/important-notes-for-pnt/information-gathering/passive/subdomain-hunting"},{"title":"Website technology","href":"/important-notes-for-pnt/information-gathering/passive/website-technology"}]}]},{"group":"Important knowledge","pages":[{"title":"Shells \u0026 Payloads","href":"/important-notes-for-pnt/important-knowledge/shells-and-payloads"},{"title":"Metasploit techniques","href":"/metasploit-techniques"}]}]},{"group":"My_projects","pages":[{"title":"Nmap automated script","href":"/my-projects/nmap-automated-script"},{"title":"Penetration testing navigator","href":"/my-projects/penetration-testing-navigator"}]},{"group":"Research","pages":[{"title":"Qubes OS","href":"/research/qubes-os"},{"title":"WiFi Pineapple cloner","href":"/research/wifi-pineapple-cloner"}]}]},"basePath":"","title":"FTP enumeration - 0101isnothacking","deploymentId":"dpl_Em2U4NQQ2N2DE3HPbPUJVZLnAtvc","buildId":"dpl_Em2U4NQQ2N2DE3HPbPUJVZLnAtvc","dynamics":[],"chunks":[]}