Solved

Grab url from anybrowser? Windows C#? track visited site?

Posted on 2013-01-08
3
1,233 Views
Last Modified: 2013-01-11
I am currently playing with C# and WPF aplication on Windows. My queston is is it possible to grab the url from current browser the user is using?

Example:
I am opening internet explorer and typing www.google.com, the page loads and it shows me google.

I want to track that I have visited and then store in an database.
ANother example would be in firefox, or in google chorme?. How can I do this in Windows enviroment and the inportant queston, is it possible to do this with C#?
0
Comment
Question by:chugarah
  • 2
3 Comments
 
LVL 7

Accepted Solution

by:
HaiFai earned 500 total points
ID: 38754283
Hi

If you dont know what browser is in use probably only way to make sure that you will catch url is capture ethernet packet.
There is many tools for doing that but here is few what you could try

http://sourceforge.net/projects/sharppcap/
http://www.wireshark.org/

so just capture port 80 traffic and filter urls from traffic, that should do it
0
 
LVL 1

Author Comment

by:chugarah
ID: 38758083
Hi, can I also extract the URL encrypted page like https?. Which one do you recommend for both http and https?

Thanks
0
 
LVL 1

Author Comment

by:chugarah
ID: 38767662
I used Sharpcap and it works greate in LAN enviroment. I tried using this one on my laptop and using my phone as modem and it didnt give any result.

I decided to go with 3 major browsers and apply code for getting the address. If you guys want the source code write an answer and I will post.
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Introduction Although it is an old technology, serial ports are still being used by many hardware manufacturers. If you develop applications in C#, Microsoft .NET framework has SerialPort class to communicate with the serial ports.  I needed to…
This article describes a simple method to resize a control at runtime.  It includes ready-to-use source code and a complete sample demonstration application.  We'll also talk about C# Extension Methods. Introduction In one of my applications…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now