If Firebug is not working or to grep the pulled URL, how do to it in Bash?
(on Windows, we can use Fiddler. On Mac there seems to be a tool tcpdump)
Sometimes Firebug is not working or if to grep if a certain path or domain URL is being pull,
can that be done on the Mac's Bash?
(such as to check if there is a pull of connect.js, or anything from www.foobar.com)
Wireshark
I don't know of a way to do it with bash, but from your question it sounds like the Wireshark packet sniffer would be a good option. You set it up to capture all packets matching a specific set of criteria (for instance, those going to host www.example.com:80) and you can then inspect the HTTP traffic.
On Mac OS X you may try http://www.charlesproxy.com (which is similar to Fiddler).
Related
It seems like versions of this question have been asked here before, but I haven't been able to glean from them the exact response to what I am looking for.
Say I open up a .txt file via vim on my mac machine and I then want to copy a line from that file to be used in another .txt file or in a google search or in terminal during an ssh session. What would be the simplest way to do this?
Thanks,
EDIT
Found a potential duplicate: Vim: copy selection to OS X clipboard. But I am open to improvements! :)
i'm not sure wether it works for osx too but here on linux i use "+<yank>, there is also "*<yank>
see also http://vim.wikia.com/wiki/Copy_an_Entire_Buffer_to_the_Clipboard
As mentioned in the other answer, use the + register or * register.
In some environments, * and + may not behave as expected. To enable the expected behavior, use a plugin like fakeclip. Fakeclip enables clipboard support when it is not available out of the box.
I am trying to add a vlc:// helper protocol on Mac OS X. To register the protocol, I have unsuccessfully been playing around with the MoreInternet PrefPane.
What I want to have in my browser is a vlc://someressource.com/audio.mp3, which should launch VLC and add http://someressource.com/audio.mp3 to the playlist (this works fine on Windows and also Linux if I remember correctly). Maybe even just have vlc://http:// so that https would also be supported.
I have no idea how to achieve this. I tried making a bash script, which MoreInternet would not accept. Then I tried making an application through Automator with my Bash script embedded. That did not work either, as the Automator application has no "creator code" - whatever that is?!
Can any of you guys point me in the right direction?
Thanks in advance!
It looks like MoreInternet hasn't been updated since 2006, so I wouldn't count on it working well.
A creator code is a unique 4-character code assigned to applications, before bundle IDs were invented. If you want one, register a code and then put it in your Info.plist under the CFBundleSignature key.
Rather than using MoreInternet, it may suffice to declare your app as a URL handler in your Info.plist, under CFBundleURLTypes. Ideally, VLC.app would do that.
Is there a simple way for Firefox to send a simple flag value to the local machine, so a program inside the local machine can react upon the flag.
I have put so much effort in cookies, extensions and even Javascript read/write file .. all of it failed. i just wanted a way that the Firefox can give signal to local machine. That's all.
For example, I create a simple extension that monitors a certain URL. Then, when the URL is visited, Firefox will signal something or set a flag. I will code a simple script to read the flag and do other things..
I am on Linux platform.
you can write to a file on disk, the application on your local machine can monitor for this file existence and act upon it.
I also suggest that the "other" application rename the file as soon as it find it so firefox can single again.
see here about Firefox file i/o using java script
Try using Applets to access the clients machine, this doesn't limit you to use Firefox other browsers as well.
I'm looking for a tool (or a set of tools) for Windows that will perform the following:
Capture UDP packets from a specific network interface to a file.
Play a stream of packets from a file through a network interface.
In addition to 2: replay the original packets to a different host than the original one.
I've already got 1 and 2, but I can't find a tool to do 3.
For capturing I can use Wireshark, for playback Colasoft Packet Player, but I couldn't find a way to change the host the packets are sent to.
The tool should work on Windows XP SP2/3.
The BitTwist (http://bittwist.sourceforge.net) editor commandline program (bittwiste) allows you to change the destination IP address (and port number) amongst other things.
See a similar question (and worked answer) at the Super User site: Replay UDP Packet Capture
You mention Colasoft Packet Player and it sounded like a useful tool, so I checked it out.
While checking their site I found they also have Packet Builder.
It seems this tool can import pcap files (and some other formats) and edit them. It can then export the edited packets again, but only to Colasoft Capsa Packet files (Colasoft's own capture file format). But that should not be a problem as Packet Player is be able to read their own format.
Unfortunately it seems there is no way to edit multiple packets at the same time, so it's a tedious process to edit a lot of packets.
Try out WinPCap which allows very low-level intercept and injection of packets. It is an open source project that many other stateful packet inspection programs (e.g. Ethereal) are based on.
I use a hex editor to do a global search and replace on the PCAP file to change the destination MAC and IP. For Unicast you need to change both - not just the IP.
You could change more than the addresses, but for quick-n-dirty it's OK.
Bork Blatt mentioned Ethereal, which has been renamed to Wireshark for various reasons, so go to the new site directly. I've never tried editing packets in Wireshark, but you do get the option to save out the packets so you can work with the files offline to change the packets. Do get started with this, check out the libpcap file format documentation.
I've found out that the tcprewrite tool provides editing capabilities to .pcap files. Unfortunately, it does not support Windows.
for visual inspection you can use wire shark tool but you need advanced tool then use wpdpack libraries. It is available in this site.
https://www.winpcap.org/devel.htm
Similar like wire shark you can capture using TestPacketCapture visual studio solution.
Got a problem with a proxy telnet server that I am trying to debug, it appears that a set of characters being sent are causing it a problem .... does anybody know where I can get a list of teminal commands (Along the lines of [40m)?
You have to do telnet negotiation, did you checked RFC-1091 and RFC-854? Afterwards, what will be accepted depends on the terminal type of course.
For telnet protocol, you could lookup RFC854. But from your description, you are probably looking for specifications of some terminal emulators. There are a lot of different terminal types, each having its own specifications.