Skip to content

Commit 18d8de1

Browse files
committed
PS: Add a bunch of source models.
1 parent d02ad25 commit 18d8de1

File tree

10 files changed

+93
-0
lines changed

10 files changed

+93
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
extensions:
2+
- addsTo:
3+
pack: microsoft-sdl/powershell-all
4+
extensible: sourceModel
5+
data:
6+
- ["Microsoft.PowerShell.Utility", "Method[Read-Host].ReturnValue", "stdin"]
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
extensions:
2+
- addsTo:
3+
pack: microsoft-sdl/powershell-all
4+
extensible: sourceModel
5+
data:
6+
- ["Microsoft.Win32.Registry", "Method[GetValue]", "windows-registry"]
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
extensions:
2+
- addsTo:
3+
pack: microsoft-sdl/powershell-all
4+
extensible: sourceModel
5+
data:
6+
- ["Microsoft.Win32.RegistryKey", "Instance.Method[GetValue].ReturnValue", "windows-registry"]
7+
- ["Microsoft.Win32.RegistryKey", "Instance.Method[GetValueNames].ReturnValue", "windows-registry"]
8+
- ["Microsoft.Win32.RegistryKey", "Instance.Method[GetSubKeyNames].ReturnValue", "windows-registry"]
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
extensions:
2+
- addsTo:
3+
pack: microsoft-sdl/powershell-all
4+
extensible: sourceModel
5+
data:
6+
- ["System.Console", "Method[Read].ReturnValue", "stdin"]
7+
- ["System.Console", "Method[ReadKey].ReturnValue", "stdin"]
8+
- ["System.Console", "Method[ReadLine].ReturnValue", "stdin"]
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
extensions:
2+
- addsTo:
3+
pack: microsoft-sdl/powershell-all
4+
extensible: sourceModel
5+
data:
6+
- ["System.Environment", "Method[ExpandEnvironmentVariables].ReturnValue", "environment"]
7+
- ["System.Environment", "Method[GetCommandLineArgs].ReturnValue", "commandargs"]
8+
- ["System.Environment", "Method[GetEnvironmentVariable].ReturnValue", "environment"]
9+
- ["System.Environment", "Method[GetEnvironmentVariables].ReturnValue", "environment"]
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
extensions:
2+
- addsTo:
3+
pack: microsoft-sdl/powershell-all
4+
extensible: sourceModel
5+
data:
6+
- ["System.IO.File", "Method[AppendText].ReturnValue", "file-write"]
7+
- ["System.IO.File", "Method[Create].ReturnValue", "file-write"]
8+
- ["System.IO.File", "Method[CreateText].ReturnValue", "file-write"]
9+
- ["System.IO.File", "Method[Open].ReturnValue", "file-write"]
10+
- ["System.IO.File", "Method[Open].ReturnValue", "file"]
11+
- ["System.IO.File", "Method[OpenRead].ReturnValue", "file"]
12+
- ["System.IO.File", "Method[OpenText].ReturnValue", "file"]
13+
- ["System.IO.File", "Method[OpenWrite].ReturnValue", "file-write"]
14+
- ["System.IO.File", "Method[ReadAllBytes].ReturnValue", "file"]
15+
- ["System.IO.File", "Method[ReadAllBytesAsync].ReturnValue", "file"]
16+
- ["System.IO.File", "Method[ReadAllLines].ReturnValue", "file"]
17+
- ["System.IO.File", "Method[ReadAllLinesAsync].ReturnValue", "file"]
18+
- ["System.IO.File", "Method[ReadAllText].ReturnValue", "file"]
19+
- ["System.IO.File", "Method[ReadAllTextAsync].ReturnValue", "file"]
20+
- ["System.IO.File", "Method[ReadLines].ReturnValue", "file"]
21+
- ["System.IO.File", "Method[ReadLinesAsync].ReturnValue", "file"]
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
extensions:
2+
- addsTo:
3+
pack: microsoft-sdl/powershell-all
4+
extensible: sourceModel
5+
data:
6+
- ["System.IO.FileInfo", "Method[AppendText].ReturnValue", "file-write"]
7+
- ["System.IO.FileInfo", "Method[Create].ReturnValue", "file-write"]
8+
- ["System.IO.FileInfo", "Method[CreateText].ReturnValue", "file-write"]
9+
- ["System.IO.FileInfo", "Method[Open].ReturnValue", "file-write"]
10+
- ["System.IO.FileInfo", "Method[Open].ReturnValue", "file"]
11+
- ["System.IO.FileInfo", "Method[OpenRead].ReturnValue", "file"]
12+
- ["System.IO.FileInfo", "Method[OpenText].ReturnValue", "file"]
13+
- ["System.IO.FileInfo", "Method[OpenWrite].ReturnValue", "file-write"]
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
extensions:
2+
- addsTo:
3+
pack: microsoft-sdl/powershell-all
4+
extensible: sourceModel
5+
data:
6+
- ["System.IO.FileStream", "Instance", "file"]
7+
- ["System.IO.FileStream", "Instance", "file-write"]
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
extensions:
2+
- addsTo:
3+
pack: microsoft-sdl/powershell-all
4+
extensible: sourceModel
5+
data:
6+
- ["System.IO.StreamWriter", "Instance", "file-write"]
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
extensions:
2+
- addsTo:
3+
pack: microsoft-sdl/powershell-all
4+
extensible: sourceModel
5+
data:
6+
- ["System.Net.Sockets.TcpClient", "Instance.Method[GetStream].ReturnValue", "remote"]
7+
- ["System.Net.Sockets.UpdClient", "Instance.Method[EndReceive].ReturnValue", "remote"]
8+
- ["System.Net.Sockets.UpdClient", "Instance.Method[Receive].ReturnValue", "remote"]
9+
- ["System.Net.Sockets.UpdClient", "Instance.Method[ReceiveAsync].ReturnValue", "remote"]

0 commit comments

Comments
 (0)