Posts

url - Burp Suite: Page keeps on loading after proxy is configured on Firefox to record activities -

Image
when set proxy record activities in burp suite, url keeps on loading, though manually without proxy works. while recording proxy, url keeps on loading. any idea why url not work while recording proxy? you need add certificate burp proxy browser. easiest way certificate point browser @ proxy , go http://burp hit 'ca certificate' button in top right side of window. once downloaded follow these instructions https://support.portswigger.net/customer/portal/articles/1783075-installing-burp-s-ca-certificate-in-your-browser .

javascript - Send data one page to another pager according to ID in Angular JS -

Image
i using mobile angular js ui frame work. new in angular js , want send data 1 page page city id. if user click on city data show according city. home page: html page: <div class="jumbtron scrollable-content text-center bg-color"> <div class="row"> <div class="bgimage"> <div class="bannercntnt"> <div class="hp-text-bnnr" style="color:white"> want delivery? <br>choose city </div> <br> <div class="btn-group" ng-controller="mycontroller"> <button ui-turn-on='mydropdown' class='btn' ng-click="getdatafromserver()" style="width:160px;background-color:white; color:#c62222"> <span class="fa fa-location-arrow"></span> <strong> select city...

c# - SQLite database first with entity framework in VS 2015 Community Edition -

Image
i want create wpf application use sqlite database entity framework. googled , found these link1 , link2 , link3 says need install sqlite-netfx46-setup-bundle-x64-2015-1.0.99.0.exe . when trying connect database getting following error. i googled not find solutions. please solve error. i had exact issue, mine cause having older version installed in : "c:\program files (x86)\system.data.sqlite\2010" uninstalling , deleting directory, followed reinstalling newer 2015 version fixed it, hope helps link below found solution http://system.data.sqlite.org/index.html/tktview/8b77722ff3b0e766fce4db053f3a62d09af942e7

How can I select a particular function to run based on a filename using Powershell? -

i have function change filename , move specific computer. function duplicated computer, have 2 specific functions each filename. can't seem figure out how script choose function want use. here i've tried no luck: $files = dir -path \\server\pptv\*\*.* -include atrium.*, clirel.* -recurse { (if ($file.fullname -eq "atrium.*" | rename-copy-atrium), (if ($file.fullname -eq "clirel.*" | rename-copy-clirel))) } how can pipe function , run? rename-copy-atrium example 1 of function names. the proper syntax if() statement in powershell is: if([condition]) { [execute code] } so want like: $files = dir -path \\server\pptv\*\*.* -include atrium.*, clirel.* -recurse foreach($file in $files) { if($file.fullname -like "atrium.*") { # assume function takes fileinfo object parameter argument rename-copy-atrium $file } elseif($file.fullname -like "clirel.*") { re...

how to correctly format this glyphicon button with input field using bootstrap -

Image
i want add search button inside input field , did it.here current output. i used class="btn btn-xs btn-danger to have button red background , white color symbol bootstrap danger buttons.but can see not doing it. here code: <div class="input-group"> <span class="input-group-addon"><i class="glyphicon glyphicon-user" aria-hidden="true"></i></span> <input type="text" class="form-control" id="employeeid" placeholder="enter id"> <span class="input-group-btn"> <button type="button" id="search" class="btn btn-xs btn-danger"> <span class="input-group-addon"><i class="glyphicon glyphicon-search " aria-hidden="true"></i></span> </button> </span> </div> so how...

How to add a Plug in Elixir / Phoenix before the Router? -

is there way insert plug run prior router selecting controller/action? i've got app redirect root path specific subdomains, regardless of current path on domains. so: sub.myapp.com/foo/bar should redirect sub.myapp.com/ but, default, router says there no path /foo/bar , halts execution of plugs, meaning never hits redirect. is there way insert plug prior router choosing action/controller? (note: i'm pretty sure can handle case a catch-all route , i'm curious if there's better way.) your router called explicitly in lib/my_app/endpoint.ex . can add plugs in file before then. you can write plug handles redirects , halt connection before router called. defmodule hellophoenix.endpoint use phoenix.endpoint, otp_app: :hello_phoenix plug plug.requestid plug plug.logger ... plug customredirectplug # add plug here plug hellophoenix.router end

how to restrict Yii2 url view get request -

here explain problem clearly, how can restrict request through url in yii2 this url: http://localhost/school/backend/web/index.php?r=user%2fview&id=42 here if change view id = 43 , showing data of id 43 , don't want data through url. want restrict request through url or how can encrypt id value if change url manager to 'urlmanager' => [ 'enableprettyurl' => true, 'showscriptname' => false, ], then getting url below http://localhost/school/admin/user/view?id=42 here if change id=43 getting data of id 43 how can this. appreciated. assuming current scenario (let me know if misunderstood something): company can see/add/edit people (that part did). now, each company can actions on own people , not others. one solution: in company model must have like: public function getpeoples() { return $this->hasmany(people::classname(), ['id_people' => 'id']); } you can add funct...