-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathinput.hta
57 lines (50 loc) · 2.76 KB
/
input.hta
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
47
48
49
50
51
52
53
54
55
56
57
<html>
<head>
<title>RAC Attack - Jumpstart Configuration</title>
<hta:application>
<script language="vbscript">
window.resizeTo 700,400
Sub SaveBatch()
Set fs = CreateObject("Scripting.FileSystemObject")
strFile = fs.GetAbsolutePathName(fs.BuildPath(fs.GetSpecialFolder(2), "UserIn.bat"))
Set ts = fs.OpenTextFile(strFile, 2, True)
ts.WriteLine "SET SOURCEDRIVE=" & document.Forms(0).elements("sourcedrive").value
ts.WriteLine "SET DESTDRIVE=" & document.Forms(0).elements("destdrive").value
ts.WriteLine "SET DESTDRIVESHARED=" & document.Forms(0).elements("destdriveshared").value
ts.WriteLine "SET MEMSIZE=" & document.Forms(0).elements("memsize").value
ts.WriteLine "SET VMWAREDIR=""" & document.Forms(0).elements("vmwaredir").value & """"
ts.WriteLine "SET MYUSER=" & document.Forms(0).elements("username").value
ts.WriteLine "SET MYPASS=" & document.Forms(0).elements("password").value
ts.Close
End Sub
</script>
</head>
<body>
<h2>Jumpstarting from source: DEFAULT-SOURCEDIR</h2>
<form>
<table>
<tr><td align="right">Jumpstart Source Drive</td>
<td><input type=text tabindex=1 name=sourcedrive size=5 value="DEFAULT-SOURCEDRIVE"></td></tr>
<tr><td align="right">[RAC11g] Datastore Dest Drive</td>
<td><input type=text name=destdrive size=5 value="DEFAULT-DESTDRIVE"> <font color="red">50G Required</font></td></tr>
<tr><td align="right">[RAC11g-shared] / [RAC11g-iso] Datastore Dest Drive</td>
<td><input type=text name=destdriveshared size=5 value="DEFAULT-DESTDRIVESHARED"> <font color="red">15G Required</font></td></tr>
<tr><td align="right">VM Memory Size (MB)</td>
<td><input type=text name=memsize size=10 value="DEFAULT-MEMSIZE"></td></tr>
<tr><td align="right">VMware Installation Directory</td>
<td><input type=text name=vmwaredir size=45 value=DEFAULT-VMWAREDIR></td></tr>
<tr><td align="right">Admin User</td>
<td><input type=text name=username size=20 value="DEFAULT-MYUSER"></td></tr>
<tr><td align="right">Login Password</td>
<td><input type=password name=password size=20 value="DEFAULT-MYPASS"></td></tr>
<tr><td></td>
<td><input type=button language="vbscript" value="CONTINUE" onclick="SaveBatch : Window.Close"></td></tr>
</table>
<hr>
<font color="red"><strong>Warning:</strong></font> When first starting VMs after jumpstart, answer that you <font color="red"><strong>moved</strong></font> them.
</form>
<script language=vbscript>
document.Forms(0).elements("sourcedrive").focus
</script>
</body>
</html>