Jump to content

Search the Community

Showing results for tags 'region'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Talk
    • Everything Else
    • Gaming
    • Questions
    • Business and Enterprise IT
    • Security
    • Hacks & Mods
    • Applications & Coding
    • Trading Post
  • Hak5 Gear
    • Hak5 Cloud C²
    • WiFi Pineapple Mark VII
    • USB Rubber Ducky
    • Bash Bunny
    • Key Croc
    • Packet Squirrel
    • Shark Jack
    • Signal Owl
    • LAN Turtle
    • Screen Crab
    • Plunder Bug
  • O.MG (Mischief Gadgets)
    • O.MG Cable
    • O.MG DemonSeed EDU
  • WiFi Pineapple (previous generations)
    • WiFi Pineapple TETRA
    • WiFi Pineapple NANO
    • WiFi Pineapple Mark V
    • WiFi Pineapple Mark IV
    • Pineapple Modules
    • WiFi Pineapples Mark I, II, III
  • Hak5 Shows
  • Community
    • Forums and Wiki
    • #Hak5
  • Projects
    • SDR - Software Defined Radio
    • Community Projects
    • Interceptor
    • USB Hacks
    • USB Multipass
    • Pandora Timeshifting

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests


Enter a five letter word.

Found 2 results

  1. Patch unlocks additional channels depending on country code: before (mine is hardest to GB for some reason): after: diff -Npaur pineapple/modules/Configuration/api/module.php pineapple-new/modules/Configuration/api/module.php --- pineapple/modules/Configuration/api/module.php 2015-12-21 23:12:02.000000000 +0000 +++ pineapple-new/modules/Configuration/api/module.php 2016-01-10 13:06:40.000000000 +0000 @@ -44,6 +44,14 @@ class Configuration extends SystemModule case 'disableLandingPage': $this->disableLandingPage(); break; + + case 'changeRegion': + $this->changeRegion(); + break; + + case 'getCurrentRegion': + $this->getCurrentRegion(); + break; } } @@ -73,6 +81,19 @@ class Configuration extends SystemModule $this->response = array("success" => true); } + private function getCurrentRegion() + { + $currentRegion = exec('iw reg get|head -n 1|cut -b 9-10'); + $this->response = array("currentRegion" => $currentRegion); + } + + private function changeRegion() + { + $region = escapeshellarg($this->request->Region); + exec("iw reg set {$region}"); + $this->response = array("success" => true); + } + private function getLandingPageData() { $landingPage = file_get_contents('/etc/pineapple/landingpage.php'); diff -Npaur pineapple/modules/Configuration/js/module.js pineapple-new/modules/Configuration/js/module.js --- pineapple/modules/Configuration/js/module.js 2015-12-21 23:12:02.000000000 +0000 +++ pineapple-new/modules/Configuration/js/module.js 2016-01-10 13:06:40.000000000 +0000 @@ -7,6 +7,8 @@ registerController("ConfigurationGeneral $scope.newPasswordRepeat = ""; $scope.showPasswordSuccess = false; $scope.showPasswordError = false; + $scope.customRegion = ""; + $scope.currentRegion = ""; $scope.timeZones = [ { value: 'GMT+12', description: "(GMT-12:00) Eniwetok, Kwajalein" }, @@ -46,6 +48,15 @@ registerController("ConfigurationGeneral }); }); + $scope.getCurrentRegion = (function() { + $api.request({ + module: "Configuration", + action: "getCurrentRegion" + }, function(response) { + $scope.currentRegion = response.currentRegion; + }); + }); + $scope.rebootPineapple = (function() { if (confirm("Are you sure you want to reboot your WiFi Pineapple?")) { $api.request({ @@ -115,12 +126,30 @@ registerController("ConfigurationGeneral }, function(response) { if (response.success !== undefined) { - $scope.getCurrentTimeZone(); + $scope.getCurrentTimezone(); $scope.customOffset = ""; } }); }); + $scope.changeRegion = (function() { + var tmpRegion; + if ($scope.customRegion.trim() !== "") { + tmpRegion = $scope.customRegion; + } + $api.request({ + module: "Configuration", + action: "changeRegion", + Region: tmpRegion, + + }, function(response) { + if (response.success !== undefined) { + $scope.getCurrentRegion(); + $scope.customRegion="00"; + } + }); + }); + $scope.getCurrentRegion(); $scope.getCurrentTimeZone(); }]); @@ -179,4 +208,4 @@ registerController('ConfigurationLanding }); $scope.getLandingPageStatus(); -}]); \ No newline at end of file +}]); diff -Npaur pineapple/modules/Configuration/module.html pineapple-new/modules/Configuration/module.html --- pineapple/modules/Configuration/module.html 2015-12-11 01:10:48.000000000 +0000 +++ pineapple-new/modules/Configuration/module.html 2016-01-10 13:06:40.000000000 +0000 @@ -42,10 +42,27 @@ </div> </div> </form> - <br/> + <form class="form-horizontal"> + <div class="form-group"> + <label class="col-sm-2 control-label">Region: </label> + <div class="col-sm-3"> + <input type="text" class="form-control" ng-model="currentRegion" disabled> + </div> + </div> + <div class="form-group"> + <label for="Region" class="col-sm-2 control-label">Region Code</label> + <div class="col-sm-5"> + <input type="text" class="form-control" placeholder="00" ng-model="customRegion"> + </div> + </div> + <div class="form-group"> + <div class="col-sm-offset-2 col-sm-10"> + <button type="submit" class="btn btn-default" ng-click="changeRegion()">Change Region</button> + </div> + </div> + </form> <br/> - <form class="form-horizontal"> <div class="form-group"> <label for="oldPassword" class="col-sm-2 control-label">Old Password</label> @@ -100,4 +117,4 @@ </div> </div> </div> -</div> \ No newline at end of file +</div>
  2. I just got the Pineapple, and the first problem I had was connecting to my home wifi. The Pineapple couldn't even find it when scanning, problem was that the wifi was on channel 13 and the Pineapple is set on US region. What I would like to know is how do I change it to a region that supports the other channels. When I input the command "iw reg set NO" it switches easily over and connects to my home wifi on channel 13. But I need to do this every time the Pineapple is restarted. I've tried adding the command to the dips commands but it still boots up on US region. Any ideas on how to change the default region or make the change permanent?
×
×
  • Create New...