Current book: Business Model Generation
Blogroll
Tags
-
Recent Posts
Recent Comments
- Andreas on Medical Device Security…
- Dirk lernt» Blog Archive » Entscheidungstypen on The two kinds of Developers
- Henrique Köhler on Man kann alles aus mindestens 5 Richtungen betrachten…
- Henrique Köhler on Autor
- Project Gestalt… | www.cu-0xff.de on Developer Garden: Project Gestalt – Wir schalten in den nächsten Gang…
Categories
Archives
- May 2013
- March 2013
- January 2013
- October 2012
- September 2012
- August 2012
- July 2012
- June 2012
- May 2012
- April 2012
- March 2012
- October 2011
- July 2011
- June 2011
- April 2011
- February 2011
- December 2010
- November 2010
- August 2010
- July 2010
- June 2010
- May 2010
- April 2010
- March 2010
- February 2010
- December 2009
- November 2009
Tag Archives: Telekom
Honey Words und Two Factor Authentication
Hi… Gerade bin ich über „Honey Words“ gestolpert (http://www.pcworld.com/article/2038092/use-of-honeywords-can-expose-password-crackers.html). Idee ist es, einige leicht zu knackende Passwörter in die Tabelle aller ge-salteten und ge-hashten Passwörter einzustreuen. Wenn dann diese Passwörter zum Login verwendet werden, geht die Alarm-Sirene hoch. Scheinbar wird … Continue reading
Source code on two-way-authentication
Hi…
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 |
/* * Telekom Tropo Call Sample */ // This file is special to me, make your own ;-) var secrets=require("./telekom-tropo-app-secret.js"); require("tropo-webapi"); var express = require("express"); var app = express(); var https = require("https"); var secretAccessCode; //This triggers Telekom Tropo to call back function triggerTelekomTropo() { https.get("https://tropo.developergarden.com/api/sessions?action=create&token="+secrets.telekom_tropo_token_outboundVoice, function(res) { console.log("Session creation requested..."); }).on("error", function(err) { console.log("Got error: " + e.message); }); }; // Use this to access elements of http body app.configure(function() { app.use(express.bodyParser()); }); //This is were Telekom Tropo gets the secret message app.post("/",function(req, res) { var tropo = new TropoWebAPI(); tropo.call(secrets.landlineNumber); tropo.say("The secret access code is " + String(secretAccessCode)); res.end(TropoJSON(tropo)); console.log("Message send..."); }); // Entry form - triggers authentication process app.get("/two_way_authenticate", function(req, res) { var body='<html><head><meta http_equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body>'; body += '<form action="/input_code" method="get">'+ 'If you want to get access code, please press the button.' + '<input type="submit" value="Send access code"/>' + '</form></body></html>'; res.status(200); res.set({"Content-Type": "text/html"}); res.write(body); res.end(); }); // Form to send / enter secret code app.get("/input_code", function(req, res) { secretAccessCode = Math.floor(Math.random()*800)+100; triggerTelekomTropo(); var body='<html><head><meta http_equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body>'; body += '<form action="/check_code" method="post">'+ 'Please enter code.' + '<textarea name="code"></textarea>' + '<input type="submit" value="Check access code"/>' + '</form></body></html>'; res.status(200); res.set({"Content-Type": "text/html"}); res.write(body); res.end(); }); //Form that checks the secret code and grants access app.post("/check_code", function(req,res) { var body='<html><head><meta http_equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body>'; if(Number(req.param('code', null)) == secretAccessCode) body+="Access granted"; else body+="Access denied"; body+='</body></html>'; res.status(200); res.set({"Content-Type": "text/html"}); res.write(body); res.end(); }); app.listen(8000); console.log("Server started / listing on port 8000"); |
CU 0xff
Telekom Tropo – Survey Solution in less than 8 minutes
Hi… hier der Source Code zum Webcast:
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 |
/** * Telekom Tropo Sample - Simple Survey */ // Using Tropo-webapi and express // install by 'npm install express' and 'npm install tropo-webapi' require("tropo-webapi"); var express = require("express"); var app = express(); // This variable takes the incoming results var results = {}; var tropo_protocoll = ""; // Use this to access elements of http body app.configure(function() { app.use(express.bodyParser()); }); // Any new inbound call is handled by this function app.post("/", function(req, res){ var tropo = new TropoWebAPI(); console.log("new incoming call"); tropo.say("Willkommen",null,null,null,"Katrin"); var say = new Say("Bitte ihre Auswahl zwischen 1 und 9 eingeben."); var choices = new Choices("[1 DIGITS]"); tropo.ask(choices, 3, false, null, "foo", null, true, say, 5, "Katrin"); tropo.on("continue", null, "/answer", true); tropo_protocoll += TropoJSON(tropo); res.status(200); res.set({"Content-Type": "application/json"}); res.send(TropoJSON(tropo)); }); // Answer is taken in by this function app.post('/answer', function(req, res){ var answer=req.body['result']['actions']['interpretation']; if(results[answer] == undefined) { results[answer] = 1; } else { results[answer] += 1; } console.log("New message recorded - now " + answer + " has " + results[answer] +" votes."); // Create a new instance of the TropoWebAPI object. var tropo = new TropoWebAPI(); tropo.say("Vielen Dank. Ihre Meinung wurde aufgenommen.", null,null,null,"Katrin"); tropo_protocoll += req.body; tropo_protocoll += TropoJSON(tropo); res.status(200); res.set({"Content-Type": "application/json"}); res.send(TropoJSON(tropo)); }); //Report results by means of a simple website app.get('/results', function(req, res) { var body='<html>'+ '<head>'+ '<meta http-equiv="Content-Type" '+ 'content="text/html; charset=UTF-8" />'+ '</head>'+ '<body>'+ 'Ergebnisse soweit<br/>'; for(var line in results) { body += line + "->" + results[line] + " Stimmen <br/>"; }; body += '</body>'; res.status(200); res.set({"Content-Type": "text/html", "Refresh":"15" }); res.write(body); res.end(); }); app.get('/show_json', function(req, res) { var body='<html>'+ '<head>'+ '<meta http-equiv="Content-Type" '+ 'content="text/html; charset=UTF-8" />'+ '</head>'+ '<body>'+ tropo_protocoll + '<body/>'; res.status(200); res.set({"Content-Type": "text/html"}); res.write(body); res.end(); }); app.listen(8000); console.log("Server started / listing on port 8000"); |
CU 0xff
Project Gestalt…
Hi… wir arbeiten volle Kraft an Project Gestalt (siehe http://www.cu-0xff.de/wordpress/?p=250). Ganz vorne sind Sascha, Grit, Ben und Peter – Auf dem Wege mal DANKE gesagt. Wer ein wenig mehr über unser derzeitiges Denken lernen will, dem sei mal Saschas Blog … Continue reading
Posted in B2B2X, Developer Garden
Tagged B2B2X, DeveloperGarden, Gestalt, Telekom, Tropo
Leave a comment
Telekom Tropo – Logfile Zugriff für’s Debugging
Hi… da bei Telekom Tropo Applikationen zwei Server miteinander kommunizieren, ist es teilweise etwas schwierig ein ordentliches Debugging hin zu bekommen. Gerade am Anfang, wenn beim eigenen Webserver auf wundersame Weise nichts ankommt… (weil man sich bei der Server-Adresse vertippt … Continue reading
An die Krieger des Lichts…
Hi… so, Freunde, dieser Post geht mal explizit nicht an Luschen und Warmduscher. Wer im Winter den Pelzkragen an die Jacke macht, kann gleich mal weiterblättern. Das Internet hat genug Seiten für Weinerle. Gesucht werden Menschen, die das Zeug zum … Continue reading
Telekom Tropo – Make the elefant dance…
Hi… nachdem man sich für Telekom Tropo angemeldet hat (siehe diesen Post) und sich seine Nummer zuweisen hat lassen (siehe diesen Post), möchte man natürlich auch was machen. Vielleicht erwähne ich noch vorab: Soweit ist dies alles erstmal kostenfrei. Wir … Continue reading
Telekom Tropo – Nummer zur App zuordnen
Hi… [Update: Wir haben diesen Prozess erheblich vereinfacht. Werde in Kürze einen neuen Artikel dazu veröffentlichen!!!] ich hatte ja bereits zum Thema Tropo kurz mal was geschrieben. Jetzt machen wir mal weiter und klären wie ich denn jetzt eine entsprechende … Continue reading
We are hiring…
Hi… Junior Product Manager Entrepreneur in einem Startup im Bereich Software Developer und Mobile Devices in einem globalen Unternehmen… fehlt noch ein Buzzword?? Dagegen ist jedes Trainee-Programm Kindergarten. Wer das Ding im Lebenslauf hat, sticht theoretische MBA-Schönlinge mit 5 Jahren … Continue reading
Posted in B2B2X, Developer Garden, Mobile
Tagged B2B2X, DTAG, Software Ecosystem, Telekom
Leave a comment
Wie komme ich an einen Tropo-Account?
Hi… seit kurzem bieten wir mit Telekom Tropo eine deutsche Instanz von Tropo an. Das ist kurz gesagt ein Interactive Voice Response (IVR) System, das die Verbindung zwischen Telefonnetz (also eine EInwahlnummer) und dem Internet (also einem Webserver) herstellt. Man … Continue reading