{"id":18063228,"url":"https://github.com/yanncam/exe2powershell","last_synced_at":"2025-10-03T23:15:20.632Z","repository":{"id":46758389,"uuid":"52957506","full_name":"yanncam/exe2powershell","owner":"yanncam","description":"exe2powershell - exe2bat reborn for modern Windows","archived":false,"fork":false,"pushed_at":"2020-10-15T08:22:30.000Z","size":1819,"stargazers_count":171,"open_issues_count":1,"forks_count":44,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-08-22T06:48:27.276Z","etag":null,"topics":["bat","batch","c","debug","exe2bat","exe2powershell","hex","powershell","windows"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yanncam.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-03-02T11:23:32.000Z","updated_at":"2025-06-12T03:58:11.000Z","dependencies_parsed_at":"2022-09-24T08:40:14.618Z","dependency_job_id":null,"html_url":"https://github.com/yanncam/exe2powershell","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/yanncam/exe2powershell","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yanncam%2Fexe2powershell","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yanncam%2Fexe2powershell/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yanncam%2Fexe2powershell/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yanncam%2Fexe2powershell/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yanncam","download_url":"https://codeload.github.com/yanncam/exe2powershell/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yanncam%2Fexe2powershell/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278240197,"owners_count":25954138,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-03T02:00:06.070Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bat","batch","c","debug","exe2bat","exe2powershell","hex","powershell","windows"],"created_at":"2024-10-31T05:09:51.692Z","updated_at":"2025-10-03T23:15:20.591Z","avatar_url":"https://github.com/yanncam.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# exe2powershell\n**exe2powershell - exe2bat reborn for modern Windows**\n\nexe2bat reborn in exe2powershell for modern Windows\n\nexe2powershell is used to convert any binary file (*.exe) to a BAT file.\nThe resulting BAT file contains only \"echo\" command and finally a powershell command to re-create the original binary file.\n\nThis kind of tool is usefull during pentesting when an auditor trigger a shell without any upload feature. With \"echo\" and \"powershell\" the auditor is able to \"upload\" any binary file on the targeted system.\n\ninitial author ninar1, based on riftor work, and modernized by ycam\nexe2powershell - keep up to date : www.asafety.fr / synetis.com\n         \nMain code taken from Riftors \"exe2hex\".\n\nAdapted for Windows BAT file by ninar1.\n\nModernized to newer Windows systems by Yann CAM (ycam - http://www.asafety.fr | http://www.synetis.com)\n\nThis version is modernized from exe2bat to work with modern Windows version.\nexe2bat have limitation :\n* Need \"debug.exe\" available on the target computer (16-bit application removed on Windows 7 x64 but available on Windows 7 x86)\n* Limit input exe to 64kB\n\nexe2powershell replace the need of \"debug.exe\" by a PowerShell command line available on all Windows since Windows 7 / 2008.\nThere is no more limitation in input exe size.\n\nHow to use :\n\n```shell\nC:\\exe2powershell\\bin\u003eexe2powershell.exe\n  ______          ___  _____                       _____ _          _ _\n |  ____|        |__ \\|  __ \\                     / ____| |        | | |\n | |__  __  _____   ) | |__) |____      _____ _ _| (___ | |__   ___| | |\n |  __| \\ \\/ / _ \\ / /|  ___/ _ \\ \\ /\\ / / _ \\ '__\\___ \\| '_ \\ / _ \\ | |\n | |____ \u003e  \u003c  __// /_| |  | (_) \\ V  V /  __/ |  ____) | | | |  __/ | |\n |______/_/\\_\\___|____|_|   \\___/ \\_/\\_/ \\___|_| |_____/|_| |_|\\___|_|_|\n\n        [ exe2bat reborn in exe2powershell for modern Windows ]\n [ initial author ninar1, based on riftor work, and modernized by ycam ]\n [ exe2powershell version 1.0 - keep up2date: asafety.fr / synetis.com ]\n\n [*] Usage : exe2powershell.exe inputfile outputfile\n [*] e.g.  : exe2powershell.exe nc.exe nc.bat\n```\n\n* Details (in french) :\n    * https://www.asafety.fr/vuln-exploit-poc/windows-dos-powershell-upload-de-fichier-en-ligne-de-commande-one-liner/\n\nCredits : Riftor, ninar1, BCK and ycam\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyanncam%2Fexe2powershell","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyanncam%2Fexe2powershell","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyanncam%2Fexe2powershell/lists"}