Comments for rand0m blog http://rand0m.org Less pants. More Y-Pie. Since 1999. Sun, 18 Mar 2018 19:50:20 +0000 hourly 1 Comment on winexe 1.1 centos 6 and windows 2012 R2 by PL http://rand0m.org/2015/08/05/winexe-1-1-centos-6-and-windows-2012-r2/#comment-4094 Sun, 18 Mar 2018 19:50:20 +0000 http://rand0m.org/?p=957#comment-4094 Doesn’t work on Win 10 Pro Edu (1709). Still, while trying with psexec (from sysinternals), client responds. But with winexec-static it doesn’t. With Win7 it’sOK.

]]>
Comment on winexe 1.1 centos 6 and windows 2012 R2 by Ray http://rand0m.org/2015/08/05/winexe-1-1-centos-6-and-windows-2012-r2/#comment-3039 Tue, 05 Dec 2017 17:30:22 +0000 http://rand0m.org/?p=957#comment-3039 nevermind, missing the package “zlib-static”, installed it and re configure, works.

]]>
Comment on winexe 1.1 centos 6 and windows 2012 R2 by Ray http://rand0m.org/2015/08/05/winexe-1-1-centos-6-and-windows-2012-r2/#comment-3038 Tue, 05 Dec 2017 17:21:45 +0000 http://rand0m.org/?p=957#comment-3038 I got this at the end of the build, anyone know why?

Waf: Leaving directory `/usr/src/samba/bin’
‘build’ finished successfully (4m58.451s)
Checking for library smb_static : yes
Checking for library popt : yes
Checking for library com_err : yes
Checking for library bsd : yes
Checking for library z : yes
Checking for library resolv : yes
Checking for library rt : yes
Checking for library dl : yes
Checking for program i386-mingw32-gcc,i386-mingw32msvc-gcc,i386-w64-mingw32-gcc,i586-mingw32-gcc,i586-mingw32msvc-gcc,i586-w64-mingw32-gcc,i686-mingw32-gcc,i686-mingw32msvc-gcc,i686-w64-mingw32-gcc : /usr/bin/i686-w64-mingw32-gcc
Checking for program x86_64-mingw32-gcc,x86_64-mingw32msvc-gcc,x86_64-w64-mingw32-gcc,amd64-mingw32-gcc,amd64-mingw32msvc-gcc,amd64-w64-mingw32-gcc : /usr/bin/x86_64-w64-mingw32-gcc
‘configure’ finished successfully (5m56.952s)
Waf: Entering directory `/usr/src/winexe/source/build’
[ 1/16] c: winexesvc_launch.c -> build/winexesvc_launch.c.1.o
[ 2/16] c: winexesvc_loop.c -> build/winexesvc_loop.c.1.o
[ 3/16] c: winexesvc_launch.c -> build/winexesvc_launch.c.2.o
[ 4/16] c: winexesvc_loop.c -> build/winexesvc_loop.c.2.o
[ 5/16] c: bin2c.c -> build/bin2c.c.3.o
[ 6/16] c: winexe.c -> build/winexe.c.6.o
[ 7/16] c: svcinstall.c -> build/svcinstall.c.6.o
[ 8/16] c: async.c -> build/async.c.6.o
[ 9/16] cprogram: build/winexesvc_launch.c.1.o build/winexesvc_loop.c.1.o -> build/winexesvc32.exe
[10/16] cprogram: build/winexesvc_launch.c.2.o build/winexesvc_loop.c.2.o -> build/winexesvc64.exe
[11/16] cprogram: build/bin2c.c.3.o -> build/bin2c
[12/16] winexesvc32_exe.c: build/bin2c build/winexesvc32.exe -> build/winexesvc32_exe.c
[13/16] c: build/winexesvc32_exe.c -> build/winexesvc32_exe.c.6.o
[14/16] winexesvc64_exe.c: build/bin2c build/winexesvc64.exe -> build/winexesvc64_exe.c
[15/16] c: build/winexesvc64_exe.c -> build/winexesvc64_exe.c.6.o
[16/16] cprogram: build/winexe.c.6.o build/svcinstall.c.6.o build/async.c.6.o build/winexesvc32_exe.c.6.o build/winexesvc64_exe.c.6.o -> build/winexe-static
/usr/bin/ld: cannot find -lz
collect2: ld returned 1 exit status
Waf: Leaving directory `/usr/src/winexe/source/build’
Build failed
-> task in ‘winexe-static’ failed (exit status 1):
{task 15314000: cprogram winexe.c.6.o,svcinstall.c.6.o,async.c.6.o,winexesvc32_exe.c.6.o,winexesvc64_exe.c.6.o -> winexe-static}
[‘/usr/bin/gcc’, ‘-pthread’, ‘winexe.c.6.o’, ‘svcinstall.c.6.o’, ‘async.c.6.o’, ‘winexesvc32_exe.c.6.o’, ‘winexesvc64_exe.c.6.o’, ‘-o’, ‘/usr/src/winexe/source/build/winexe-static’, ‘-Wl,-Bstatic’, ‘-L/usr/src/winexe/source/smb_static/build’, ‘-lsmb_static’, ‘-lbsd’, ‘-lz’, ‘-lresolv’, ‘-lrt’, ‘-Wl,-Bdynamic’, ‘-ldl’, ‘-lgnutls’]

]]>
Comment on winexe 1.1 centos 6 and windows 2012 R2 by Jairo López http://rand0m.org/2015/08/05/winexe-1-1-centos-6-and-windows-2012-r2/#comment-2008 Tue, 22 Aug 2017 15:56:14 +0000 http://rand0m.org/?p=957#comment-2008 Hi,
thanks full for this post, help me very much.

Thanks.

Note: in Centos 7 is not required install libacl1-dev and libldap2-dev.

Regards.

]]>
Comment on winexe 1.1 centos 6 and windows 2012 R2 by mk http://rand0m.org/2015/08/05/winexe-1-1-centos-6-and-windows-2012-r2/#comment-705 Thu, 23 Mar 2017 07:52:28 +0000 http://rand0m.org/?p=957#comment-705 In reply to mk.

now it is working – on the destination windows machine (version > windows 7) you need to change a registry key, do that in an administrative console:
reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\system /v LocalAccountTokenFilterPolicy /t REG_DWORD /d 1 /f

]]>
Comment on winexe 1.1 centos 6 and windows 2012 R2 by mk http://rand0m.org/2015/08/05/winexe-1-1-centos-6-and-windows-2012-r2/#comment-702 Tue, 21 Mar 2017 13:10:32 +0000 http://rand0m.org/?p=957#comment-702 does not work for me – did build a static version of winexe as described above – but I only get NT_STATUS_ACCESS_DENIED.
the supplied credentials are definitely correct. 🙁

]]>
Comment on winexe 1.1 centos 6 and windows 2012 R2 by ssh_rox http://rand0m.org/2015/08/05/winexe-1-1-centos-6-and-windows-2012-r2/#comment-579 Tue, 17 Jan 2017 08:34:10 +0000 http://rand0m.org/?p=957#comment-579 Hello,
When I build I’ve got a bunch of ‘undefined reference to ….’ and it leads to an error:

Build failed
-> task in ‘winexe-static’ failed (exit status 1):
{task 39427536: cprogram winexe.c.6.o,svcinstall.c.6.o,async.c.6.o,winexesvc32_exe.c.6.o,winexesvc64_exe.c.6.o -> winexe-static}
[‘/usr/bin/gcc’, ‘-pthread’, ‘winexe.c.6.o’, ‘svcinstall.c.6.o’, ‘async.c.6.o’, ‘winexesvc32_exe.c.6.o’, ‘winexesvc64_exe.c.6.o’, ‘-o’, ‘/usr/src/winexe-winexe-waf/source/build/winexe-static’, ‘-Wl,-Bstatic’, ‘-L/usr/src/winexe-winexe-waf/source/smb_static/build’, ‘-lsmb_static’, ‘-lbsd’, ‘-lz’, ‘-lresolv’, ‘-lrt’, ‘-Wl,-Bdynamic’, ‘-ldl’]

Have you got any tips for this issue please ?

]]>
Comment on winexe 1.1 centos 6 and windows 2012 R2 by Eric Perie http://rand0m.org/2015/08/05/winexe-1-1-centos-6-and-windows-2012-r2/#comment-500 Thu, 24 Nov 2016 20:34:14 +0000 http://rand0m.org/?p=957#comment-500 Worked fine on Ubuntu 16.04.1 x86_64 with Windows 10 x86_64 after:

– the following packages were installed:
libacl1-dev libldap2-dev libgnutls-dev comerr-dev libbsd-dev mingw-w64-i686-dev
mingw-w64-x86-64-dev

– some minor changes in the code were made: the lines containing calls to
gnutls_certificate_type_set_priority() had to be commented-out in the following
files:

source4/lib/tls/tls.c (line #601)
source4/lib/tls/tls_tstream.c (line #1017)

This call is obsolete in latest versions of gnutls it seems:
https://www.redhat.com/archives/libvir-list/2011-July/msg01555.html

– modified LocalAccountTokenFilterPolicy in the registry according to:
https://sourceforge.net/p/winexe/winexe-waf/ci/master/tree
https://support.microsoft.com/en-gb/kb/942817

Thank you very much for the great quality of your original post, it was very, very helpful.

]]>
Comment on Welcome the flip side, I took it slow by Burnz http://rand0m.org/2015/06/06/welcome-back/#comment-498 Mon, 21 Nov 2016 06:33:36 +0000 http://rand0m.org/?p=1#comment-498 Thought I would pop in on a whim. I don’t think I could look back at the archives without cringing horribly, given how I react to my own writing from that period. I’m even loathe to use my old moniker, but will for nostalgia’s sake. Handy for seeing progress and growth, however. Pleased to see yours.

]]>
Comment on winexe 1.1 centos 6 and windows 2012 R2 by semiazas http://rand0m.org/2015/08/05/winexe-1-1-centos-6-and-windows-2012-r2/#comment-375 Tue, 26 Jul 2016 13:52:32 +0000 http://rand0m.org/?p=957#comment-375 FWIW kudos. Scary thing is winexe (as best I can tell) hasn’t been updated in about 2.5 years.

]]>