{
	"id": "93db21f2-251d-47af-ba11-a47611c199c0",
	"created_at": "2026-04-06T00:21:55.30423Z",
	"updated_at": "2026-04-10T03:19:57.033277Z",
	"deleted_at": null,
	"sha1_hash": "71b2da68e81eb62fa1d7d81f58c4d8ca2d6d6f0a",
	"title": "GitHub - skalkoto/winexe",
	"llm_title": "",
	"authors": "",
	"file_creation_date": "0001-01-01T00:00:00Z",
	"file_modification_date": "0001-01-01T00:00:00Z",
	"file_size": 43759,
	"plain_text": "GitHub - skalkoto/winexe\r\nBy Andrzej Hajda\r\nArchived: 2026-04-02 10:56:57 UTC\r\nREADME\r\nLicense\r\n winexe README\r\n =============\r\nLast updated 24 October 2013.\r\nBuilding\r\n========\r\nWinexe makes use of Samba version 4.\r\nWinexe can be built such that it is statically linked to Samba\r\nlibraries, resulting in an executable that is several megabytes in\r\nsize. The winexe binary is still dynamically linked to a number of\r\nshared libraries such as libc.\r\nOn some distributions winexe can be built such that it is linked to\r\nSamba shared libraries, resulting in an executable less than 100\r\nkilobytes in size.\r\nInstructions for Samba static library build\r\n-------------------------------------------\r\nOn Debian install dependencies.\r\n apt-get install \\\r\n gcc-mingw-w64 \\\r\n comerr-dev \\\r\n libpopt-dev \\\r\n libbsd-dev \\\r\n zlib1g-dev \\\r\n libc6-dev \\\r\n python-dev\r\nOn RedHat-like distros including those in the following list, install\r\nhttps://github.com/skalkoto/winexe/\r\nPage 1 of 5\n\ndependencies.\r\n * Fedora 18\r\n * CentOS 6 with added EPEL repo and lfarkas's repo\r\n (http://www.lfarkas.org/linux/packages/centos/6/mingw-w64/)\r\n yum install \\\r\n gcc \\\r\n perl \\\r\n mingw-binutils-generic \\\r\n mingw-filesystem-base \\\r\n mingw32-binutils \\\r\n mingw32-cpp \\\r\n mingw32-crt \\\r\n mingw32-filesystem \\\r\n mingw32-gcc \\\r\n mingw32-headers \\\r\n mingw64-binutils \\\r\n mingw64-cpp \\\r\n mingw64-crt \\\r\n mingw64-filesystem \\\r\n mingw64-gcc \\\r\n mingw64-headers \\\r\n libcom_err-devel \\\r\n popt-devel \\\r\n zlib-devel \\\r\n zlib-static \\\r\n glibc-devel \\\r\n glibc-static \\\r\n python-devel\r\nImportant: make sure that libbsd-devel is *not* installed.\r\n yum remove \\\r\n libbsd-devel\r\nObtain the Samba source code.\r\n git clone git://git.samba.org/samba.git samba\r\nBuild. The argument of the \"samba-dir\" option is the path to the samba\r\nsource tree that was just obtained. The \"configure\" step takes a long\r\ntime because it builds Samba.\r\n cd source\r\n ./waf --samba-dir=../samba configure build\r\nhttps://github.com/skalkoto/winexe/\r\nPage 2 of 5\n\nRun.\r\n build/winexe-static --help\r\nThe build system tries to find paths to headers and libraries, but you\r\ncan also specify these as follows.\r\n ./waf configure --samba-dir=../samba --samba-inc-dirs=... --samba-lib-dirs=...\r\nInstructions for Samba shared library build\r\n-------------------------------------------\r\nThe following instructions are for Debian Wheezy with Samba packages\r\nfrom unstable (Jessie pre-release), at the time of writing the only\r\ndistribution that has packaged Samba 4 with shared libraries. Even\r\nJessie does not provide all the shared libraries needed by winexe\r\nas public libraries, but this can be worked around as explained below.\r\nOn Debian install dependencies.\r\n apt-get install \\\r\n python2.7 \\\r\n gcc-mingw-w64 \\\r\n libtevent-dev\r\nFrom Debian Jessie install dependencies.\r\n apt-get -t unstable install samba-dev\r\nBuild.\r\n cd source\r\n ./waf configure build\r\nRun.\r\n build/winexe --help\r\nTo build the shared-library version while building the static-library\r\nversion, use the \"--enable-shared\" option.\r\n ./waf configure --samba-dir=../samba --enable-shared\r\nIssues\r\n======\r\nhttps://github.com/skalkoto/winexe/\r\nPage 3 of 5\n\n1. Winexe blocked by Windows \"simple file sharing\" mode\r\nSome versions of Windows operate in so-called \"simple file sharing\" mode.\r\nIn this mode, when an attempt is made to access the system over the\r\nnetwork using credentials that are local to that server or client,\r\nWindows will only provide guest level access.\r\nTo fix, you have to set the \"Network Access: Sharing and security model\r\nfor local accounts\" to \"Classic – local users authenticate as themselves\".\r\nAccess it via Start \u003e Run \u003e secpol.msc \u003e Local Policies \u003e Security Options,\r\nand change \"Network Access: Sharing and security model for local accounts\"\r\nto \"Classic - local users authenticate as themselves\".\r\nRef: http://itbin.blogspot.com/2010/10/psexec-logon-failure-and-access-denied.html\r\n2. Winexe blocked by Windows Remote User Account Control\r\nThe LocalAccountTokenFilterPolicy setting affects how administrator\r\ncredentials are applied to remotely administer the computer.\r\nTo use winexe with a Windows Vista or Windows 7 machine it is\r\nnecessary to configure a registry setting as follows.\r\nClick on the Windows \"Start\" icon, enter \"cmd\" and then press\r\nCTRL-SHIFT-ENTER. In the console window that subsequently opens, enter\r\nthe following command.\r\n reg add \"HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\system\" /v LocalAccountTokenFilte\r\nRef: http://support.microsoft.com/kb/942817\r\nCredits\r\n-------\r\nWritten by Andrzej Hajda \u003candrzej.hajda@wp.pl\u003e\r\nContributions were made by:\r\n* Thomas Hood, RAAF Technology bv \u003cthomas@raaftech.com\u003e\r\nLicense\r\n-------\r\nPlease see the COPYING file for the text of the GNU GPL version 3.\r\nhttps://github.com/skalkoto/winexe/\r\nPage 4 of 5\n\nSource: https://github.com/skalkoto/winexe/\r\nhttps://github.com/skalkoto/winexe/\r\nPage 5 of 5",
	"extraction_quality": 1,
	"language": "EN",
	"sources": [
		"ETDA",
		"MITRE"
	],
	"references": [
		"https://github.com/skalkoto/winexe/"
	],
	"report_names": [
		"winexe"
	],
	"threat_actors": [],
	"ts_created_at": 1775434915,
	"ts_updated_at": 1775791197,
	"ts_creation_date": 0,
	"ts_modification_date": 0,
	"files": {
		"pdf": "https://archive.orkl.eu/71b2da68e81eb62fa1d7d81f58c4d8ca2d6d6f0a.pdf",
		"text": "https://archive.orkl.eu/71b2da68e81eb62fa1d7d81f58c4d8ca2d6d6f0a.txt",
		"img": "https://archive.orkl.eu/71b2da68e81eb62fa1d7d81f58c4d8ca2d6d6f0a.jpg"
	}
}