-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprivesc.vbs
More file actions
46 lines (34 loc) · 1.19 KB
/
privesc.vbs
File metadata and controls
46 lines (34 loc) · 1.19 KB
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
41
42
43
44
45
46
Dim lmao, xd
lmao = "lmao"
xd = "xd"
'lmaoxd
Wscript.Echo(lmao + xd)
Dim stringA
stringA = "42"
Dim stringB
stringB = "37"
Dim intA
intA= CInt(stringA) 'Set to integer value 42
Dim intB
intB= CInt(stringB) 'Set to integer value 37
sumA = 30: sumB = 15 'Initialize variables
wscript.echo "sumA: " & TypeName(sumA)
wscript.echo "sumB: " & TypeName(sumB)
Test = CBool(sumA = sumB) 'Test contains false
sumB= sumB * 2 'Double value of sumB
Test = CBool(sumA = sumB) 'Test contains true
wscript.echo "Test: " & TypeName(Test)
dateStr = "December 10, 2005" 'Define a date as a string
wscript.echo "dateStr: " & TypeName(dateStr)
theDate = CDate(dateStr) 'Convert to Date data type
wscript.echo "theDate: " & TypeName(theDate)
timeStr = "8:25:10 AM" 'Define a time as a string
theTime = CDate(timeStr) 'Convert to Date data type
wscript.echo "timeStr: " & TypeName(timeStr)
wscript.echo "theTime: " & TypeName(theTime)
aDouble = 715.255 'Define a numeric value
aString = CStr(aDouble) 'Convert to a string
wscript.echo "aDouble: " & TypeName(aDouble)
wscript.echo "aString: " & TypeName(aString)
Const COMPANYID = "4876-54-32-87A"
Const PROJECTNUMBER = 789