Repository navigation
Expand file tree
/
Copy pathhexfile.html
More file actions
136 lines (106 loc) · 4.17 KB
/
Copy pathhexfile.html
File metadata and controls
136 lines (106 loc) · 4.17 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
<!DOCTYPE html>
<html ng-app="pcApp">
<head>
<!--
<base href="/">
<link rel="stylesheet" href="http://netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" />
-->
<!-- load CSS from bootstrap and fontawesome via CDN -->
<link rel="stylesheet" href="libs/bootstrap/css/bootstrap.min.css" />
<link rel="stylesheet" href="libs/font-awesome/css/font-awesome.css" />
<link rel="stylesheet" href="styles.css" />
<!-- load angular and angular route via CDN -->
<!--
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.25/angular.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.25/angular-route.js"></script>
-->
<script src="libs/angular/angular.js"></script>
<script src="libs/angular/ng-file-upload-all.js"></script>
<script src="hexfile.js"></script>
</head>
<body ng-controller="formController">
<!-- <a href="https://www.infoblox.com" target="_blank" style="margin-top:3px;"><img alt="Infoblox logo" src="https://6map.infoblox.com/images/logo.png" style="margin-left:20px;"></a> -->
<!-- Blue bar -->
<div class="breadcrumb">
</div>
<div class="container center-block">
<div> <!--under container-->
<form name="userForm" class="form-horizontal">
<!--header message-->
<div class="row">
<div class="col-xs-8 col-xs-offset-2
col-sm-8 col-sm-offset-2
col-md-8 col-md-offset-2">
<h3>Hexify</h3>
<h4 class="bg-warning text-danger">
Warning: This script will export data from your local machine to this computer over DNS. This may be construed as hacking and may be punishable by local, state, and federal laws. Please contact your IT Security or IT Support to get approval prior to testing.
Please proceed at your own risk.
</h4>
</div>
</div>
<hr/>
<!-- form components slightly offset from the left-->
<div class="row">
<div class="form-background
col-xs-8 col-xs-offset-1
col-sm-4 col-sm-offset-1
col-md-4 col-md-offset-1">
<div class="btn btn-primary btn-sm btn-block"
required
ngf-select="showFileName($file)"
ng-model="formFields.file" name="uploadFile" >
{{fileButtonMessage}}
</div>
<p/>
<div class="form-group">
<label for="delay" class="col-sm-offset-2 col-sm-6 control-label">Delay (ms)</label>
<div class="col-sm-4">
<input type="text" class="form-control" id="delay"
ng-model="formFields.delay" name="delay"
placeholder="">
</div>
</div>
<!--validation-->
<span class="text-danger" ng-show="userform.uploadfile.$invalid">
You must select a file</span>
<b class="text-danger" ng-show="fileSize > 1">
<br/>This file is too large. Files must be less than
1Mb</b>
<div></div>
<!--
<button ng-disabled="!userForm.$valid"
Don't show the submit button until we are ready
-->
<button ng-show="userForm.$valid && fileSize < 1"
class="btn btn-success btn-lg btn-block"
ng-click="uploadPic()">Send It!
</button>
<span class="text-danger" ng-show="errorMsg">{{errorMsg}}</span>
</div><!--cols-->
<div class="col-sm-6">
<p>Upload a file, and this will generate a UID and a link to
retrieve the file from the server.</p>
<span ng-show="uid">
<h4>Your UID is : {{uid}}</h4>
<p>Your link is:
<br/><a href="http://www.ignoremydata.com/cgi-bin/decode.cgi?filename={{formFields.file.name}}&uid={{uid}}">
http://www.ignoremydata.com/cgi-bin/decode.cgi?filename={{formFields.file.name}}&uid={{uid}}</a>
</p>
</span>
</div>
</div><!--row-->
<!-- status message, wider -->
<p/>
<div class="row">
<!--file formatting message, put down here where the block
is wider -->
<pre>
Output...
{{logresult}}
</pre>
</div><!--row-->
</form>
</div> <!-- inner div to container-->
</div>
</body>
</html>