Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Feb 26, 2021. It is now read-only.

Nmap validation #25

Merged
merged 2 commits into from
Aug 15, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ <h3>Port Scanner advanced configuration</h3>
name="inputPortScannerTarget"
type="text"
ng-model="target.location"
ng-pattern="/^(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9])\.)*([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9\-]*[A-Za-z0-9])$/"
disabled
/>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ <h2>Please configure the Port Scan</h2>
}];

$scope.addTarget = function () {
$scope.targetList.push({'name':'', 'location': ''});
$scope.targetList.push({'name': '', 'location': ''});
};

$scope.checkForEnter = function ($event) {
Expand Down Expand Up @@ -72,30 +72,32 @@ <h3>Portscan Target</h3>
<div class="form-group">
<div class="controls row form-group" ng-repeat="target in targetList track by $index">
<div class="col-xs-5">
<label for="inputPortScannerTarget">Target Name</label>
<label>
Target Name
</label>
<input required class="form-control"
type="text"
id="inputPortScannerTarget"
name="inputPortScannerTarget"
id="inputPortScannerName"
name="inputPortScannerName"
placeholder="Public Site Name"
ng-minlength="2"
ng-maxlength="30"
ng-maxlength="128"
ng-model="target.name"
ng-pattern="/^(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9])\.)*([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9\-]*[A-Za-z0-9])$/"
/>
<p class="text-danger"
ng-if="configure_target.inputPortScannerTarget.$touched && configure_target.inputPortScannerTarget.$invalid">
The Target need to be a valid hostname or ip-address. (No protocol or port in the address)
</p>
</div>
<div class="col-xs-6">
<label>Target Hosts</label>
<label>
Target Hosts
</label>
<input required class="form-control"
type="text"
placeholder="Hostname/IP address"
ng-minlength="3"
ng-maxlength="100"
id="inputPortScannerTarget"
name="inputPortScannerTarget"
ng-minlength="2"
ng-maxlength="256"
ng-model="target.location"
ng-pattern="/^(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9])\.)*([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9\-]*[A-Za-z0-9])$/"
ng-keydown="checkForEnter($event)"
/>
</div>
Expand Down Expand Up @@ -125,7 +127,7 @@ <h3>Portscan Target</h3>
ng-required="false"
ng-maxlength="50"
ng-model="context"
name="context" />
name="context"/>
</div>
</div>

Expand Down