gem install rails
rails new my_app -T
rails g scaffold Book title:string description:text | |
rails g scaffold Pubhouse title:string address:text | |
rails g model BookPubhouse book_id:integer pubhouse_id:integer | |
rake db:migrate |
<!doctype html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Untitled Document</title> | |
<script type="text/javascript"> | |
<!-------------------------------------------------------------------- |
# The $provide service is used to override an injected dependency | |
# Bad - results in Error: [ng:areq] Argument 'fn' is not a function, got Object | |
module 'someModule', ($provide) -> | |
$provide.value "SomeService", SomeMock | |
# Good | |
module 'someModule', ($provide) -> | |
$provide.value "SomeService", SomeMock | |
null |
Given an input PCAP and a location in a Bro script, this script will filter the PCAP into a new file, which contains only the connections that visited that script location. This script can help filter a large PCAP to narrow down problematic connections, such as protocol violations, weirds, etc.