Skip to content

Commit 2583b2e

Browse files
committed
Various improvements
Cmdlet added: - Get-HotFix Cmdlet renamed: - Get-SystemInfo to Get-ComputerInfo Improvements: - Get-ChildItem: added support for -Depth parameter - Resolve-DnsName: added support for specifying the -Type parameter - Moved parsing of the -ComputerName, -Username and -Password to the PSCommand base class - Categorized cmdlet namespaces - Sorted output of Get-Command cmdlet - Proper error when typing incorrect command - Some minor bugfixes
1 parent 229e1d1 commit 2583b2e

48 files changed

Lines changed: 3377 additions & 3131 deletions

Some content is hidden

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

.gitignore

Lines changed: 330 additions & 330 deletions
Large diffs are not rendered by default.

LICENSE

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,29 @@
1-
BSD 3-Clause License
2-
3-
Copyright (c) 2018, Arris Huijgen
4-
All rights reserved.
5-
6-
Redistribution and use in source and binary forms, with or without
7-
modification, are permitted provided that the following conditions are met:
8-
9-
* Redistributions of source code must retain the above copyright notice, this
10-
list of conditions and the following disclaimer.
11-
12-
* Redistributions in binary form must reproduce the above copyright notice,
13-
this list of conditions and the following disclaimer in the documentation
14-
and/or other materials provided with the distribution.
15-
16-
* Neither the name of the copyright holder nor the names of its
17-
contributors may be used to endorse or promote products derived from
18-
this software without specific prior written permission.
19-
20-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21-
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22-
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23-
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
24-
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25-
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26-
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27-
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
28-
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29-
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1+
BSD 3-Clause License
2+
3+
Copyright (c) 2018, Arris Huijgen
4+
All rights reserved.
5+
6+
Redistribution and use in source and binary forms, with or without
7+
modification, are permitted provided that the following conditions are met:
8+
9+
* Redistributions of source code must retain the above copyright notice, this
10+
list of conditions and the following disclaimer.
11+
12+
* Redistributions in binary form must reproduce the above copyright notice,
13+
this list of conditions and the following disclaimer in the documentation
14+
and/or other materials provided with the distribution.
15+
16+
* Neither the name of the copyright holder nor the names of its
17+
contributors may be used to endorse or promote products derived from
18+
this software without specific prior written permission.
19+
20+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
24+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
28+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

NoPowerShell.cna

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
1-
# _ _ ____ ____ _ _ _
2-
# | \ | | ___ | _ \ _____ _____ _ __/ ___|| |__ ___| | |
3-
# | \| |/ _ \| |_) / _ \ \ /\ / / _ \ '__\___ \| '_ \ / _ \ | |
4-
# | |\ | (_) | __/ (_) \ V V / __/ | ___) | | | | __/ | |
5-
# |_| \_|\___/|_| \___/ \_/\_/ \___|_| |____/|_| |_|\___|_|_|
6-
#
7-
# @bitsadmin
8-
# https://github.com/bitsadmin
9-
#
10-
11-
$binary = "scripts/NoPowerShell.exe";
12-
$help = "Execute a command via the reflective NoPowerShell commandline";
13-
beacon_command_register("nps", $help, "Use: nps [command]\n\n$help");
14-
15-
alias nps
16-
{
17-
if(!-exists $binary)
18-
{
19-
berror($1, "NoPowerShell binary cannot be found at $binary");
20-
return;
21-
}
22-
$args = replace($0, "nps ", "");
23-
bexecute_assembly($1, $binary, $args);
24-
}
1+
# _ _ ____ ____ _ _ _
2+
# | \ | | ___ | _ \ _____ _____ _ __/ ___|| |__ ___| | |
3+
# | \| |/ _ \| |_) / _ \ \ /\ / / _ \ '__\___ \| '_ \ / _ \ | |
4+
# | |\ | (_) | __/ (_) \ V V / __/ | ___) | | | | __/ | |
5+
# |_| \_|\___/|_| \___/ \_/\_/ \___|_| |____/|_| |_|\___|_|_|
6+
#
7+
# @bitsadmin
8+
# https://github.com/bitsadmin
9+
#
10+
11+
$binary = "scripts/NoPowerShell.exe";
12+
$help = "Execute a command via the reflective NoPowerShell commandline";
13+
beacon_command_register("nps", $help, "Use: nps [command]\n\n$help");
14+
15+
alias nps
16+
{
17+
if(!-exists $binary)
18+
{
19+
berror($1, "NoPowerShell binary cannot be found at $binary");
20+
return;
21+
}
22+
$args = replace($0, "nps ", "");
23+
bexecute_assembly($1, $binary, $args);
24+
}
17.1 KB
Loading

0 commit comments

Comments
 (0)