File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed
lib/semmle/code/powershell/frameworks
test/library-tests/frameworks/microsoft_powershell Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,12 @@ extensions:
6
6
- ["microsoft.powershell.utility!", "Method[read-host].ReturnValue", "stdin"]
7
7
- ["microsoft.powershell.utility!", "Method[select-xml].ReturnValue[path]", "file"]
8
8
- ["microsoft.powershell.utility!", "Method[format-hex].ReturnValue[path]", "file"]
9
+ - ["microsoft.powershell.utility!", "Method[invoke-webrequest].ReturnValue", "remote"]
10
+ - ["microsoft.powershell.utility!", "Method[iwr].ReturnValue", "remote"]
11
+ - ["microsoft.powershell.utility!", "Method[wget].ReturnValue", "remote"]
12
+ - ["microsoft.powershell.utility!", "Method[curl].ReturnValue", "remote"]
13
+ - ["microsoft.powershell.utility!", "Method[invoke-restmethod].ReturnValue", "remote"]
14
+ - ["microsoft.powershell.utility!", "Method[irm].ReturnValue", "remote"]
9
15
10
16
- addsTo :
11
17
pack : microsoft/powershell-all
Original file line number Diff line number Diff line change @@ -5,4 +5,7 @@ $xmlQuery = "/Users/User"
5
5
$path = " C:/Users/MyData.xml"
6
6
$xmldata = Select-Xml - Path $path - XPath $xmlQuery # $ type="file stream"
7
7
8
- $hexdata = Format-Hex - Path $path - Count 48 # $ type="file stream"
8
+ $hexdata = Format-Hex - Path $path - Count 48 # $ type="file stream"
9
+
10
+ $remote_data1 = Iwr https:// example.com / install.ps1 # $ type="remote flow source"
11
+ $remote_data2 = Invoke-RestMethod - Uri https:// blogs.msdn.microsoft.com / powershell/ feed/ # $ type="remote flow source"
You can’t perform that action at this time.
0 commit comments