for f in *.pfx; do pemout="${f}.pem"; keyout="${pemout}.key"; crtout="${pemout}.crt"; openssl pkcs12 -in $f -out $pemout -nodes -password pass:somepass; openssl rsa -in $pemout -out $keyout; openssl x509 -in $pemout -out $crtout; done
BC
for f in *.pfx; do pemout="${f}.pem"; keyout="${pemout}.key"; crtout="${pemout}.crt"; openssl pkcs12 -in $f -out $pemout -nodes -password pass:somepass; openssl rsa -in $pemout -out $keyout; openssl x509 -in $pemout -out $crtout; done
set_real_ip_from 0.0.0.0/0 ; real_ip_recursive on ; real_ip_header x-forwarded-for ;
src IP = 10.0.0.2 dst IP = 10.0.0.3
GET /someurl.html HTTP/1.1 host: brookscunningham.com X-Forwarded-For: 1.1.1.1, 2.2.2.2, 3.3.3.3, 4.4.4.4
src IP = 10.0.0.2 dst IP = 10.0.0.3
GET /someurl.html HTTP/1.1 host: brookscunnningham.com
set_real_ip_from 10.0.0.0/8 ; real_ip_recursive on ; real_ip_header x-forwarded-for ;
src IP = 10.0.0.2 dst IP = 10.0.0.3
GET /someurl.html HTTP/1.1 host: brookscunningham.com X-Forwarded-For: 1.1.1.1, 2.2.2.2, 3.3.3.3, 4.4.4.4
set_real_ip_from 10.0.0.0/8 ; set_real_ip_from 4.4.4.4 ; real_ip_recursive on ; real_ip_header x-forwarded-for ;
src IP = 10.0.0.2 dst IP = 10.0.0.3
GET /someurl.html HTTP/1.1 host: brookscunningham.com X-Forwarded-For: 1.1.1.1, 2.2.2.2, 3.3.3.3, 4.4.4.4
set_real_ip_from 10.0.0.0/8 ; set_real_ip_from 4.4.4.4 ; real_ip_recursive off ; real_ip_header x-forwarded-for ;Source and Destination IP
src IP = 10.0.0.2 dst IP = 10.0.0.3
GET /someurl.html HTTP/1.1 host: brookscunningham.com X-Forwarded-For: 1.1.1.1, 2.2.2.2, 3.3.3.3, 4.4.4.4
set_real_ip_from 10.0.0.0/8 ; set_real_ip_from 4.4.4.4 ; real_ip_recursive off ; real_ip_header x-forwarded-for ;
src IP = 55.55.55.55 dst IP = 10.0.0.3
GET /someurl.html HTTP/1.1 host: brookscunningham.com X-Forwarded-For: 1.1.1.1, 2.2.2.2, 3.3.3.3, 4.4.4.4
set_real_ip_from 10.0.0.0/8 ; set_real_ip_from 4.4.4.4 ; set_real_ip_from 55.55.55.55 ; real_ip_recursive on ; real_ip_header x-forwarded-for ;
src IP = 55.55.55.55 dst IP = 10.0.0.3
GET /someurl.html HTTP/1.1 host: brookscunningham.com X-Forwarded-For: 1.1.1.1, 2.2.2.2, 3.3.3.3, 4.4.4.4
sudo tcpdump -i any -A -s 10240 '(port 80) and (((ip[2:2] - ((ip[0]&0xf)<<2)) - ((tcp[12]&0xf0)>>2)) != 0)' and not host 127.0.0.1 | egrep --line-buffered "^........(GET |HTTP\/|POST |HEAD )|^[A-Za-z0-9-]+: " | sed -r 's/^........(GET |HTTP\/|POST |HEAD )/\n\1/g'
ssh ubuntu@You can make it into a bash function like I have below as well.-p 22 -i ~/sshpemkeyauth.key "sudo tcpdump -s 0 -U -n -w - -i any not port 22" | wireshark -k -i - &
function wiresh { ssh ubuntu@$1 -p 22 -i ~/sshpemkeyauth.key "sudo tcpdump -s 0 -U -n -w - -i any not port 22" | wireshark -k -i - & }This way you only have to do the following at the command line to take a remote wireshark capture:
wireshI hope this helps anyone else out there. I have to give a shout out to StackOverflow for inspiring this post. BC
https://basecamp.com/help/2/guides/projects/progress#rss-feeds
IFTTT can be used to pull updates from RSS feeds and post new updates into Basecamp. The link below will take you right to the If This portion of the IFTTT applet.https://ifttt.com/create/if-new-feed-item?sid=3
Now here is where authentication comes into play and things are a bit trickier as the following links from StackOverflow will articulate.http://stackoverflow.com/questions/2100979/how-to-authenticate-an-rss-feed
http://stackoverflow.com/questions/920003/is-it-possible-to-use-authentication-in-rss-feeds-using-php
A lot of RSS feeds are accessed via an unauthenticated means. However, Basecamp (thankfully) protects project RSS feeds so that not just anybody can view your project details. To authenticate against an RSS feed, the URL must be constructed in the following manner.https://username:password@basecamp.com/
zergrush@allyourbase.com
The ampersand (@) must be URL encoded when used for the RSS feed. The following is example of a properly constructed Basecamp URL.https://zergrush%40allyourbase.com:password1234@basecamp.com/9999999/projects/99999999.atom
You can validate that the URL should work by copy/pasting it in your browser. If you do not see an RSS feed, then check to make sure that any other special characters in your username or password are encoded properly. Below is my favorite site for URL encoding and decoding.http://meyerweb.com/eric/tools/dencoder/
If IFTTT accepts the RSS feed URL, then congrats! The hard part is over. You can then select Slack for the Then That action and use the Post to Channel option. One thing to note, is that the Slack channel must be a public channel for this integration to work. You can also customize how the RSS message is sent to Slack within the IFTTT settings. That's all there is to it. Test by doing anything on the Basecamp project associated with the RSS feed you configured, and then Slack should reflect the update in about 5 - 10 min. I hope anyone reading has found this article beneficial. Let me know in the comments below if you have any questions! Thanks, Brooks