Initially based on youtube video Bug Bounty Hunting Methodology v2 - Jason Haddix from Bugcrowd's LevelUp 2017
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/perl | |
| use strict; | |
| use warnings; | |
| # first, create your message | |
| use Email::MIME; | |
| my $message = Email::MIME->create( | |
| header_str => [ | |
| From => 'sh...@test.com', | |
| To => 'dm..@test.com', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const _ = require('lodash'); | |
| // sum of array's elements (lodash) | |
| _.sum([4, 2, 8, 6]); | |
| //or | |
| [1, 2, 3, 4].reduce((a, b) => a + b, 0) | |
| // max-min element of array | |
| Math.max( ...arr ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Source: https://www.digitalocean.com/community/tutorials/how-to-use-journalctl-to-view-and-manipulate-systemd-logs | |
| # most recently used/needed: journalctl -u nginx.service | |
| # kernel messages (the same as dmesg -T?): journalctl -k | |
| # monitoring journalctl -f, journalctl -n 20, | |
| journalctl --utc | |
| # since most recent re/boot | |
| journalctl -b | |
| # |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| + integrate with bounce using https://serverfault.com/questions/412638/block-outgoing-mail-to-specific-address-using-postfix |
From https://cloudonaut.io/6-unknown-cloudformation-features-you-should-know-about
-
cfn-lint
- yamllint Locally ensures that our yaml is correct
- cfn-lint Locally checks if the template makes sense
- aws cloudformation validate-template Sends the template to AWS for validation
- todo: add more tool (python + ruby) for CF validation
-
Creation policy see https://github.com/widdix/aws-cf-templates/blob/master/ec2/ec2-auto-recovery.yaml#L560 for example
From DO NOT say "you're welcome"! Respond to "thank you" PROPERLY!
- you are welcome
- (GB) you're very welcome
- (US) No problem / No problem, I enjoyed helping you
- thank YOU
- The pleasure is mine! ( a bit more formal) / My Pleasure! / Pleasure!
- I know you'd do the same for me
https://courses.edx.org/courses/course-v1:LinuxFoundationX+LFS158x+2T2019
CNCF: Graduated projects:
Kubernetes for container orchestration
Prometheus for monitoring
Envoy for service mesh
CoreDNS for service discovery
containerd for container runtime
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Generates list of jenkins plugins compatible with /usr/local/bin/install-plugins.sh (distributed in jenkins Docker) | |
| # The output of this command (colon-separated list of items like 'htmlpublisher:1.23') should be | |
| # passed as an input for /usr/local/bin/install-plugins.sh script | |
| curl -u $JENKINS_USER:$JENKINS_PASSWORD \ | |
| "http://localhost:8080/pluginManager/api/xml?depth=1&xpath=/*/*/shortName|/*/*/version&wrapper=plugins" | \ | |
| perl -pe 's/.*?<shortName>([\w-]+).*?<version>([^<]+)(<\/\w+>)+/\1 \2\n/g' | \ | |
| sed 's/ /:/' | sort |