forked from infobyte/faraday
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
micabot
committed
Oct 2, 2015
1 parent
72414c5
commit d1346ea
Showing
6 changed files
with
55 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
views/reports/_attachments/scripts/config/services/config.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// Faraday Penetration Test IDE | ||
// Copyright (C) 2013 Infobyte LLC (http://www.infobytesec.com/) | ||
// See the file 'doc/LICENSE' for the license information | ||
|
||
angular.module('faradayApp') | ||
.factory('configSrv', ['BASEURL', '$http', function(BASEURL, $http) { | ||
|
||
var p = $http.get('/reports/_design/reports/scripts/config/config.json').then(function(conf) { | ||
configSrv.faraday_version = conf.data.ver; | ||
}); | ||
|
||
configSrv = { | ||
faraday_version: null, | ||
promise: p | ||
} | ||
|
||
return configSrv; | ||
}]); |
13 changes: 13 additions & 0 deletions
13
views/reports/_attachments/scripts/index/controllers/indexCtrl.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// Faraday Penetration Test IDE | ||
// Copyright (C) 2013 Infobyte LLC (http://www.infobytesec.com/) | ||
// See the file 'doc/LICENSE' for the license information | ||
|
||
angular.module('faradayApp') | ||
.controller('indexCtrl', | ||
['$scope', 'indexFact', | ||
function($scope, indexFact) { | ||
indexFact.getConf().then(function(conf) { | ||
$scope.version = conf.data.ver; | ||
}); | ||
|
||
}]); |
14 changes: 14 additions & 0 deletions
14
views/reports/_attachments/scripts/index/providers/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// Faraday Penetration Test IDE | ||
// Copyright (C) 2013 Infobyte LLC (http://www.infobytesec.com/) | ||
// See the file 'doc/LICENSE' for the license information | ||
|
||
angular.module('faradayApp') | ||
.factory('indexFact', ['$http', function($http) { | ||
var indexFact = {}; | ||
|
||
indexFact.getConf = function() { | ||
return $http.get('/reports/_design/reports/scripts/config/config.json'); | ||
}; | ||
|
||
return indexFact; | ||
}]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters