Computers, Programming, Technology, Music, Literature

Archive for November 2014

Plug-n-Hack and ZAP: manually changed proxy settings after initial pnh configuration

with one comment

 

Plug-n-Hack introduces and proposes new standards to integrate security tools with the browsers, enabling communication between them. OWASP ZAP has inbuilt support for Plug-n-Hack (pnh) which allows you to configure Firefox to change it’s proxy settings so that OWASP ZAP could watch the FireFox traffic.

Configuration is a child’s play. Point your browser to the ZAP proxy address, follow instructions, and you are done. Just like the gif image below.

Plug-n-Hack and Zap

This changes Firefox to use a proxy configuration provided via the http://localhost:7070/proxy.pac file.

clip_image002

All works.

But, out of curiosity if you went and changed the FireFox proxy settings to No Proxy or Auto-detect proxy settings for this network or Use system proxy settings then the FireFox traffic would not be proxied through ZAP which is expected, Right? That works just fine.

However, when you want Firefox traffic to be proxied through ZAP again, you would copy paste the ZAP proxy address (http://localhost:7070/pnh) in Firefox again, and Firefox would then say A provider with this name has already been configured

clip_image002[5]

What is your expectation now?

I don’t know, as a user my expectation when I pasted the http://localhost:7070/pnh url in Firefox is that it should configure my Browser to route it’s traffic via ZAP. But that does not happen.

How to fix?

You can override the proxy settings yourself. Or you could actually use pnh to clear and remove a configuration and then point Firefox to http://localhost:7070/pnh

Shift + F2 in Firefox and then two commands for you:

 

pnh config clear ‘OWASP ZAP’

pnh config remove ‘OWASP ZAP’

 

clip_image002[7]

clip_image004

Written by gmaran23

November 19, 2014 at 6:13 pm

Windows: Get MAC address from the command line

leave a comment »

 

Windows changes with every version and the UI gets twisted and twisted, for a computer user that works with command line for administrative tasks, things are pretty much the same.

If you want to gather the list of MAC address on a particular computer run wither of the below commands:

1. getmac

getmac

image

2. find on ipconfig –all.

 

ipconfig -all | find /i "Physical Address"

 

 

image

Written by gmaran23

November 6, 2014 at 2:37 pm

Posted in Windows

Tagged with , , , ,