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
| # <SRCUSER> <SRCPW> <DSTUSER> <DSTPW> |
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 express = require("express"); | |
| require("actions-on-google") | |
| // require('dotenv').config(); | |
| const axios = require('axios'); | |
| const { WebhookClient } = require("dialogflow-fulfillment"); | |
| const app = express(); | |
| app.post("/dialogflow", express.json(), (req, res) => { | |
| const agent = new WebhookClient({ request: req, response: res }); | |
| let intentMap = new Map(); | |
| intentMap.set("Default Welcome Intent", welcome); |
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
| curl -D cookie1.txt blog.xrmplatform.org/wp-login.php | |
| # step 1 | |
| # get default cookie of blog and write cookie to cookie1.txt | |
| # step 2 | |
| # simulate browser Firefox( of course , you can use any browser agent<!--more--> what you want!) "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6" | |
| # input your username and also password | |
| # write new cookie to cookie2.txt | |
| curl -A "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6" -D cookie2.txt -b cookie1.txt -F log=username -F pwd=password -F testcookie=1 -F wp-submit="Log In" -F redirect_to=blog.xrmplatform.org/wp-admin -F submit=login -F rememberme=forever blog.xrmplatform.org/wp-login.php | |
| # currently cookie2.txt stored all cookie info |
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
| <!html> | |
| <html> | |
| <head> | |
| <title>Test Player</title> | |
| </head> | |
| <body> | |
| <audio controls="controls"> | |
| <source src="http://shout1.phoncert.softgrouphosting.net:8096/source" type="audio/mp3" /> | |
| Your browser does not support the audio tag. | |
| </audio> |
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
| #! /bin/bash | |
| VBR="1500k" | |
| FPS="30" | |
| QUAL="veryfast" | |
| YOUTUBE_URL="rtmp://a.rtmp.youtube.com/live2" | |
| KEY="" | |
| VIDEO_SOURCE="/home/ubuntu/video3.mp4" |
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
| <?php | |
| $result = array(); | |
| $result_html = ''; | |
| if (isset($_POST['domain']) && !empty($_POST['domain'])) { | |
| $domain_regex = '/[a-z\d][a-z\-\d\.]+[a-z\d]/i'; | |
| if (preg_match($domain_regex, $_POST['domain'])) { | |
| if ($url = parse_url($_POST['domain'])) { //compatible when user post an url instead of a domain | |
| if (isset($url['host'])) { | |
| $result = dns_get_record($url['host'], DNS_A + DNS_AAAA + DNS_CNAME); | |
| } else if (isset($url['path'])) { |
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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta http-equiv="Content-type" content="text/html; charset=utf-8" /> | |
| <title>Stripe Sample Form</title> | |
| <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script> | |
| <script type="text/javascript" src="https://ajax.aspnetcdn.com/ajax/jquery.validate/1.8.1/jquery.validate.min.js"></script> | |
| <script type="text/javascript" src="https://js.stripe.com/v1/"></script> | |
| <script type="text/javascript"> |