Exploit databaseDownload repository ZIP
GH-ea821316336f01071e5d83d15c2dd13b
opsxcq/exploit-cve-2017-7494
Sources for CVE-2017-7494
38 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files30
opsxcq/exploit-cve-2017-7494Revision 4d0bde4f1a7d
- ↑..Parent directory
- wintest/
- bogus.sh
- common_test_fns.inc
- dbcheck-links.sh
- dbcheck-oldrelease.sh
- dbcheck.sh
- demote-saveddb.sh
- dfree.sh
- dom_parse.sh
- nsstest.sh
- renamedc.sh
- subunit.sh
- test_chgdcpass.sh
- test_export_keytab_heimdal.sh
- test_kinit_heimdal.sh
- test_kinit_trusts_heimdal.sh
- test_ktpass.sh
- test_ldb.sh
- test_ldb_simple.sh
- test_net_ads.sh
- test_net_ads_dns.sh
- test_passwords.sh
- test_pdbtest.sh
- test_pkinit_heimdal.sh
- test_pkinit_pac_heimdal.sh
- test_samba_upgradedns.sh
- test_trust_utils.sh
- test_wintest.sh
- tombstones-expunge.sh
- upgradeprovision-oldrelease.sh
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
src/testprogs/blackbox/bogus.sh
Shell · 729 bytes#!/bin/sh
if [ $# -lt 1 ]; then
cat <<EOF
Usage: blackbox_newuser.sh PREFIX
EOF
exit 1;
fi
. `dirname $0`/subunit.sh
SERVER=$1
SHARE=$2
USER=$3
PWD=$4
DC_USER=$5
DC_PWD=$6
smbclient=$7
shift 7
TEST_USER=bogus_testuser
TEST_PWD=bogus_pass3#@
net="$BINDIR/net"
testit_expect_failure "smbclient" $smbclient "//$SERVER/$SHARE" -W POUET -U$DC_USER%$DC_PWD -c "dir"&& failed=`expr $failed + 1`
testit "net.user.add" $net rpc user add $TEST_USER $TEST_PWD -W $SERVER -U$SERVER\\$USER%$PWD -S $SERVER
testit "smbclient" $smbclient "//$SERVER/$SHARE" -W POUET -U$TEST_USER%$TEST_PWD -c "dir"|| failed=`expr $failed + 1`
testit "net.user.delete" $net rpc user delete $TEST_USER -W $SERVER -U$SERVER\\$USER%$PWD -S $SERVER
exit $failed