Skip to content

Commit 90cce2a

Browse files
fix for 20H1 from checkwmiplus with tweaks
1 parent 6fc3b1d commit 90cce2a

File tree

472 files changed

+165575
-3283
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

472 files changed

+165575
-3283
lines changed

LICENSE

-339
This file was deleted.

README.md

+21-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,22 @@
11
# wmic
2-
taken from wmi-1.3.14 from openvas?
2+
originally taken from wmi-1.3.14 from openvas?
3+
4+
pretty much replaced with https://edcint.co.nz/checkwmiplus/download/wmic-source-v1-4-1/ which is modified from zenoss
5+
6+
This works against windows 20H1
7+
8+
I tweaked the GNUmakefile to include `-ffreestanding` to help with newer GCCs
9+
10+
run make with sudo because it will immediately install into `/bin/wmic` and `/bin/winexe`
11+
12+
shows as version 1.4.1
13+
14+
Common issues
15+
---
16+
too many files open
17+
18+
probably `ulimit -Sn` is too small
19+
open it up a little by editing `/etc/security/limits.conf` and adding something like
20+
```
21+
bob soft nofile 4096
22+
```

Samba/source/VERSION

+3-3
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@
2323
# SAMBA_VERSION_RELEASE=0 #
2424
# -> "3.0.0" #
2525
########################################################
26-
SAMBA_VERSION_MAJOR=4
27-
SAMBA_VERSION_MINOR=0
28-
SAMBA_VERSION_RELEASE=0
26+
SAMBA_VERSION_MAJOR=1
27+
SAMBA_VERSION_MINOR=4
28+
SAMBA_VERSION_RELEASE=1
2929

3030
########################################################
3131
# If a official release has a serious bug #
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
prefix=bin/
2+
includedir=libcli
3+
4+
Name: cli_cldap
5+
Description: CLDAP client library
6+
Requires.private: ldb
7+
Version: 0.0.1
8+
Libs: -Lbin/shared -Lbin/static -lcli_cldap
9+
Libs.private: -lcli_ldap -lreplace -lsamba-util
10+
Cflags: -I${includedir} -I. -Iinclude -Ilib -Ilib/replace -DHAVE_IMMEDIATE_STRUCTURES=1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
prefix=bin/
2+
includedir=libcli
3+
4+
Name: cli_smb
5+
Description: SMB/CIFS client library
6+
Version: 0.0.1
7+
Libs: -Lbin/shared -Lbin/static -lcli_smb
8+
Libs.private: -lcli_raw -lsamba-errors -lcli_auth -lcli_smb_composite -lcli_nbt -lsecurity -lcli_resolve -lcli_dgram -lcli_smb2 -lcli_finddcs -lsamba-socket -lreplace
9+
Cflags: -I${includedir} -I. -Iinclude -Ilib -Ilib/replace -DHAVE_IMMEDIATE_STRUCTURES=1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
prefix=bin/
2+
includedir=libcli
3+
4+
Name: cli_wrepl
5+
Description: WINS Replication client library
6+
Requires: ndr_winsrepl
7+
Version: 0.0.1
8+
Libs: -Lbin/shared -Lbin/static -lcli_wrepl
9+
Libs.private: -lsamba-socket -lcli_resolve -levents -lpacket -lreplace
10+
Cflags: -I${includedir} -I. -Iinclude -Ilib -Ilib/replace -DHAVE_IMMEDIATE_STRUCTURES=1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
prefix=bin/
2+
includedir=librpc
3+
4+
Name: dcerpc
5+
Description: DCE/RPC client library
6+
Requires.private: cli_smb ndr gensec
7+
Version: 0.0.1
8+
Libs: -Lbin/shared -Lbin/static -ldcerpc
9+
Libs.private: -lreplace -lsamba-socket -lcli_resolve -lcli_smb2 -lndr_dcerpc -lrpc_ndr_epmapper -lndr_schannel -lrpc_ndr_netlogon -lcli_auth -lcli_raw -lcredentials
10+
Cflags: -I${includedir} -I. -Iinclude -Ilib -Ilib/replace -DHAVE_IMMEDIATE_STRUCTURES=1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
prefix=bin/
2+
includedir=auth/gensec
3+
modulesdir=${prefix}/modules/gensec
4+
5+
Name: gensec
6+
Description: Generic Security Library
7+
Version: 0.0.1
8+
Libs: -Lbin/shared -Lbin/static -lgensec
9+
Libs.private: -lcredentials -lsamba-util -lcrypto -lasn1_util -lreplace -lcredentials_krb5 -lkerberos -lauth -lauth_sam -lreplace -lauth -lschanneldb -lndr_schannel -lcredentials -lreplace -lcredentials_krb5 -lkerberos -lauth -lheimdal_gssapi -lreplace -lcredentials -lreplace -lasn1_util -lgensec_socket -lauth -lmsrpc_parse -lreplace
10+
Cflags: -I${includedir} -I. -Iinclude -Ilib -Ilib/replace -DHAVE_IMMEDIATE_STRUCTURES=1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
prefix=bin/
2+
includedir=lib/ldb
3+
modulesdir=${prefix}/modules/ldb
4+
5+
Name: ldb
6+
Description: LDAP-like embedded database library
7+
Requires: talloc
8+
Requires.private: socket_wrapper talloc talloc talloc talloc talloc talloc talloc talloc talloc talloc talloc talloc ndr talloc tdb talloc talloc talloc talloc talloc talloc talloc talloc talloc
9+
Version: 0.0.1
10+
Libs: -Lbin/shared -Lbin/static -lldb
11+
Libs.private: -lreplace -ldynconfig -lsecurity -lreplace -lnetif -lreplace -lreplace -lreplace -lreplace -lreplace -lreplace -lheimdal_krb5 -lreplace -lheimdal_hdb_keys -lreplace -lreplace -lreplace -lcli_ldap -lreplace -lreplace -lndr_misc -lreplace -lreplace -lreplace -lreplace -lreplace -lreplace -lreplace -lreplace -lreplace -lreplace
12+
Cflags: -I${includedir} -I. -Iinclude -Ilib -Ilib/replace -DHAVE_IMMEDIATE_STRUCTURES=1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
prefix=bin/
2+
includedir=librpc
3+
4+
Name: ndr
5+
Description: Network Data Representation Core Library
6+
Requires: talloc samba-config
7+
Version: 0.0.1
8+
Libs: -Lbin/shared -Lbin/static -lndr
9+
Libs.private: -lsamba-errors -lsamba-util -lcharset -lreplace
10+
Cflags: -I${includedir} -I. -Iinclude -Ilib -Ilib/replace -DHAVE_IMMEDIATE_STRUCTURES=1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
prefix=bin/
2+
includedir=librpc
3+
4+
Name: ndr_compression
5+
Description: NDR support for compressed subcontexts
6+
Requires: ndr
7+
Version: 0.0.1
8+
Libs: -Lbin/shared -Lbin/static -lndr_compression
9+
Libs.private: -lcompression -lsamba-errors -lreplace
10+
Cflags: -I${includedir} -I. -Iinclude -Ilib -Ilib/replace -DHAVE_IMMEDIATE_STRUCTURES=1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
prefix=bin/
2+
includedir=ntvfs
3+
modulesdir=${prefix}/modules/ntvfs
4+
5+
Name: ntvfs
6+
Description: Virtual File System with NTFS semantics
7+
Requires.private: ndr_xattr ndr_xattr ndr_nfs4acl cli_smb
8+
Version: 0.0.1
9+
Libs: -Lbin/shared -Lbin/static -lntvfs
10+
Libs.private: -lreplace -lauth -lreplace -lreplace -lreplace -lwrap_xattr -lntvfs_common -lmessaging -lreplace -lsamdb -lreplace -lreplace -lsamdb -ldcerpc_common -lreplace -lreplace -lreplace -lcli_raw -lreplace
11+
Cflags: -I${includedir} -I. -Iinclude -Ilib -Ilib/replace -DHAVE_IMMEDIATE_STRUCTURES=1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
prefix=bin/
2+
includedir=lib/registry
3+
modulesdir=${prefix}/modules/registry
4+
5+
Name: registry
6+
Description: Windows-style registry library
7+
Requires.private: rpc_ndr_winreg ldb talloc
8+
Version: 0.0.1
9+
Libs: -Lbin/shared -Lbin/static -lregistry
10+
Libs.private: -lsamba-util -lcharset -lreplace -lreplace -ltdr_regf -lreplace -lreplace -lreplace -lreplace
11+
Cflags: -I${includedir} -I. -Iinclude -Ilib -Ilib/replace -DHAVE_IMMEDIATE_STRUCTURES=1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
prefix=bin/
2+
includedir=param
3+
4+
Name: samba-config
5+
Description: Reading Samba configuration files
6+
Version: 0.0.1
7+
Libs: -Lbin/shared -Lbin/static -lsamba-config
8+
Libs.private: -lsamba-util -lreplace -ldynconfig
9+
Cflags: -I${includedir} -I. -Iinclude -Ilib -Ilib/replace -DHAVE_IMMEDIATE_STRUCTURES=1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
prefix=bin/
2+
includedir=libnet
3+
4+
Name: samba-net
5+
Description: Convenient high level access to Samba management interfaces
6+
Requires: dcerpc rpc_ndr_samr rpc_ndr_lsa rpc_ndr_srvsvc rpc_ndr_drsuapi samba3 cli_cldap
7+
Version: 0.0.1
8+
Libs: -Lbin/shared -Lbin/static -lsamba-net
9+
Libs.private: -lcli_composite -lcli_resolve -lcli_finddcs -lcli_finddcs -lreplace
10+
Cflags: -I${includedir} -I. -Iinclude -Ilib -Ilib/replace -DHAVE_IMMEDIATE_STRUCTURES=1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
prefix=bin/
2+
includedir=lib/samba3
3+
4+
Name: samba3
5+
Description: Library for reading Samba3 data files
6+
Requires.private: tdb ndr_security
7+
Version: 0.0.1
8+
Libs: -Lbin/shared -Lbin/static -lsamba3
9+
Libs.private: -lreplace -lsamba-util -lcredentials
10+
Cflags: -I${includedir} -I. -Iinclude -Ilib -Ilib/replace -DHAVE_IMMEDIATE_STRUCTURES=1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
prefix=bin/
2+
includedir=param
3+
modulesdir=${prefix}/modules/share
4+
5+
Name: share
6+
Description: Services Configuration Library
7+
Requires.private: ldb
8+
Version: 0.0.1
9+
Libs: -Lbin/shared -Lbin/static -lshare
10+
Libs.private: -lreplace -lsamba-util -lreplace -lsamba-util -lreplace
11+
Cflags: -I${includedir} -I. -Iinclude -Ilib -Ilib/replace -DHAVE_IMMEDIATE_STRUCTURES=1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
prefix=bin/
2+
includedir=lib/socket_wrapper
3+
4+
Name: socket_wrapper
5+
Description: Wrapper library for testing TCP/IP connections using Unix Sockets
6+
Version: 0.0.1
7+
Libs: -Lbin/shared -Lbin/static -lsocket_wrapper
8+
Libs.private: -lreplace
9+
Cflags: -I${includedir} -I. -Iinclude -Ilib -Ilib/replace -DHAVE_IMMEDIATE_STRUCTURES=1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
prefix=bin/
2+
includedir=lib/talloc
3+
4+
Name: talloc
5+
Description: A hierarchical pool based memory system with destructors
6+
Version: 0.0.1
7+
Libs: -Lbin/shared -Lbin/static -ltalloc
8+
Libs.private: -lreplace
9+
Cflags: -I${includedir} -I. -Iinclude -Ilib -Ilib/replace -DHAVE_IMMEDIATE_STRUCTURES=1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
prefix=bin/
2+
includedir=lib/tdb
3+
4+
Name: tdb
5+
Description: Trivial Database Library
6+
Version: 0.0.1
7+
Libs: -Lbin/shared -Lbin/static -ltdb
8+
Libs.private: -lreplace
9+
Cflags: -I${includedir} -I. -Iinclude -Ilib -Ilib/replace -DHAVE_IMMEDIATE_STRUCTURES=1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
prefix=bin/
2+
includedir=lib/tdr
3+
4+
Name: tdr
5+
Description: Simple marshall/unmarshall library
6+
Requires: talloc
7+
Version: 0.0.1
8+
Libs: -Lbin/shared -Lbin/static -ltdr
9+
Libs.private: -lsamba-util -lreplace
10+
Cflags: -I${includedir} -I. -Iinclude -Ilib -Ilib/replace -DHAVE_IMMEDIATE_STRUCTURES=1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
prefix=bin/
2+
includedir=torture
3+
modulesdir=${prefix}/modules/torture
4+
5+
Name: torture
6+
Description: Samba torture (test) suite
7+
Requires: samba-config talloc
8+
Requires.private: rpc_ndr_echo cli_smb registry cli_smb ndr_table rpc_ndr_unixinfo rpc_ndr_samr rpc_ndr_winreg rpc_ndr_initshutdown rpc_ndr_oxidresolver rpc_ndr_eventlog rpc_ndr_echo rpc_ndr_svcctl rpc_ndr_mgmt rpc_ndr_atsvc rpc_ndr_drsuapi rpc_ndr_lsa rpc_ndr_dfs rpc_ndr_spoolss rpc_ndr_srvsvc rpc_ndr_wkssvc rpc_ndr_rot rpc_ndr_dssetup rpc_ndr_remact rpc_ndr_oxidresolver samba-net cli_smb cli_wrepl samba-net cli_smb cli_smb samba-config rpc_ndr_samr rpc_ndr_lsa rpc_ndr_oxidresolver ndr_dcom rpc_ndr_remact ndr_table rpc_ndr_winreg dcom wmi cli_cldap cli_smb cli_smb gensec samba3
9+
Version: 0.0.1
10+
Libs: -Lbin/shared -Lbin/static -ltorture
11+
Libs.private: -lsamba-util -lreplace -lmessaging -liconv -lcrypto -lpopt_credentials -ltorture_util -lreplace -lcli_smb2 -lpopt_credentials -lreplace -lcli_lsa -lcli_smb_composite -lpopt_credentials -lreplace -ltorture_util -lrpc_ndr_netlogon -lrpc_ndr_epmapper -lwb_helper -lcli_auth -lpopt_credentials -lreplace -ltorture_util -lcli_nbt -lcli_dgram -lreplace -lpopt_credentials -lreplace -lreplace -ltorture_util -lndr_misc -lsamba-util -ldynconfig -lpopt_samba -lpopt_credentials -lpopt -lreplace -lcli_ldap -lsamdb -lpopt_credentials -lreplace -lpopt_credentials -ltorture_util -lcli_raw -lreplace -lauth -lkerberos -lpopt_credentials -lreplace -lreplace -ltorture_util
12+
Cflags: -I${includedir} -I. -Iinclude -Ilib -Ilib/replace -DHAVE_IMMEDIATE_STRUCTURES=1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
prefix=bin/
2+
includedir=nsswitch
3+
4+
Name: winbind-client
5+
Description: Client library for communicating with winbind
6+
Version: 0.0.1
7+
Libs: -Lbin/shared -Lbin/static -lwinbind-client
8+
Libs.private: -lreplace
9+
Cflags: -I${includedir} -I. -Iinclude -Ilib -Ilib/replace -DHAVE_IMMEDIATE_STRUCTURES=1

0 commit comments

Comments
 (0)