-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (32 loc) · 1.21 KB
/
choco-packages-2022-wf.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: "2022 choco packages CI workflow"
on:
push:
branches: [ main ]
schedule:
- cron: '0 0 1 * *' ##execution of a task in the first minute of the month
jobs:
windows-2022-pwsh-choco:
name: "2022 choco packages"
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: "check if server is virtual"
run: Systeminfo | findstr /i model
- name: "check the PROCESSOR_ARCHITECTURE environment variable.64-bit systems will say AMD64 and 32-bit systems should say x86"
run: wmic OS get OSArchitecture
- name: "osfingerprinting"
run: systeminfo | more
- name: "display all processes, executable path"
run: wmic process list full
- name: "list of running services"
run: tasklist
- name: "list of all processes along with their corresponding PID, and services that are tied to them"
run: tasklist /svc
- name: "look for unusual services"
run: net start
- name: "query unusual services"
run: sc query
- name: "Choco packages - pwsh script"
run: .\scripts\Choco_Packages.ps1
shell: pwsh