SlideShare a Scribd company logo
hacking with node.JS
#hacking withnode.JSHarshaVashishthttp://www.harsharv.com@harsharvPicture Source: http://bethesignal.org/blog/2011/01/06/speaking-lca2011-html5-nodejs/
What is node.js?
Node is an exciting new platform developed byRyan Dahl.
It is a lot of sugar on v8
It allows JavaScript developers to create extremely high performance servers by leveraging Google's V8 JavaScript engine, and asynchronous I/O.
Never wait it the motto
Recap… What is Node.js?Node is an exciting new platform developed by Ryan Dahl.
It allows JavaScript developers to create extremely high performance servers by leveraging Google's V8 JavaScript engine, and asynchronous I/O.
Node is a lot of Sugar written on V8
Never wait is the motto. Either to fetch a page from the web or fetch data from a DB.let us look at…
DUCK! There will be code…Lets see cod
LAMP STACK1. Order2. Waits for the foodto be cooked3.Food is ready4. Serve
Node JS1. Order2. Places  the orderwith the cook3. Immediately moves on to take the order from the next table4. Cook notifies that the food is ready5. Food is served
commonjsCommonJS is a community driven effort to standardize packaging of JavaScript libraries, known as modules. Modules written which comply to this standard provide portability between other compliant frameworks such as narwhal, and in some cases even browsers.** Conditions Apply
Why node.js?
Global objectsRequire
Module/ export
ProcessRequireThis is used to specify that a module is required.Example:var operation = require(“pow”)
Module/ exportsThis is used to package JavaScript libraries and expose the functionality to be used else where.Example:exports.pow = function (a, b) { 	…}
processThe process object is a global object and can be accessed from anywhere.
It is an instance of EventEmitter.
Can be thought as an equivalent to Window object in the browserExamples:process.cwd()
process.exit(1)
process.argv
process.on('exit', function () { 	...}process.on('uncaughtException', function (err) {	…}
Simple http server/* File Name: hello-server.js *//* Include the http module. */var http = require('http');/* Create a server which accepts Request - req and returns Response - res */http.createServer(function (req, res) {        /* Set the HTTP header for the response. */        res.writeHead(200, {'Content-Type': 'text/plain'});        /* End the HTTP response */res.end('Hello World\n');}).listen(9000, "127.0.0.1");/* Print a message to indicate that the server is running. */console.log('Server running at http://127.0.0.1:9000/');
Modules lets right some

More Related Content

PPT
Node.js Basics
PDF
Node Security: The Good, Bad & Ugly
PPTX
Introduction to NodeJS
PPTX
Express js
PPTX
Flux architecture
PPTX
Node js introduction
PDF
Spring Framework
PPTX
Software prototyping
Node.js Basics
Node Security: The Good, Bad & Ugly
Introduction to NodeJS
Express js
Flux architecture
Node js introduction
Spring Framework
Software prototyping

What's hot (20)

PDF
ES2015 / ES6: Basics of modern Javascript
PPTX
Node.js Express
PPTX
Node js Introduction
PDF
introduction to Vue.js 3
PDF
Refactoring
PDF
Nodejs presentation
PDF
Asynchronous JavaScript Programming
PPTX
Saving Time By Testing With Jest
PPTX
Its time to React.js
ODP
Basics of VueJS
PPTX
Appium overview
PDF
Page Object Model and Implementation in Selenium
PPTX
Introduction to Node js
PDF
Nodejs vatsal shah
PPTX
Introduction à Node.js
PDF
Principle based classification of design smells
PDF
Reverse Engineering Malicious Javascript
PPTX
C# ErrorProviderとValidatingイベント
PDF
Javascript essentials
ES2015 / ES6: Basics of modern Javascript
Node.js Express
Node js Introduction
introduction to Vue.js 3
Refactoring
Nodejs presentation
Asynchronous JavaScript Programming
Saving Time By Testing With Jest
Its time to React.js
Basics of VueJS
Appium overview
Page Object Model and Implementation in Selenium
Introduction to Node js
Nodejs vatsal shah
Introduction à Node.js
Principle based classification of design smells
Reverse Engineering Malicious Javascript
C# ErrorProviderとValidatingイベント
Javascript essentials

Viewers also liked (20)

PDF
Web Application Security 101 - 06 Authentication
PDF
NoSQL Injections in Node.js - The case of MongoDB
PDF
YUI and the History of OSS at Yahoo
PDF
Building Command Line Tools with Golang
PDF
Security Challenges in Node.js
PDF
StHack 2013 - Florian "@agixid" Gaultier No SQL injection but NoSQL injection
PDF
NoSQL, no SQL injections?
PDF
Pentesting with Metasploit
PDF
Physical Penetration Testing - RootedCON 2015
PPTX
Oracle Database 12c Attack Vectors
PPTX
44CON 2014 - Pentesting NoSQL DB's Using NoSQL Exploitation Framework, Franci...
PPTX
Authentication(pswrd,token,certificate,biometric)
PDF
Attacking Oracle with the Metasploit Framework
PDF
Metasploit magic the dark coners of the framework
PPTX
Dirty Little Secrets They Didn't Teach You In Pentest Class v2
PDF
Attacker Ghost Stories (CarolinaCon / Area41 / RVASec)
PDF
Windows Attacks AT is the new black
PPTX
The Dirty Little Secrets They Didn’t Teach You In Pentesting Class
PDF
Writing malware while the blue team is staring at you
PDF
Golang concurrency design
Web Application Security 101 - 06 Authentication
NoSQL Injections in Node.js - The case of MongoDB
YUI and the History of OSS at Yahoo
Building Command Line Tools with Golang
Security Challenges in Node.js
StHack 2013 - Florian "@agixid" Gaultier No SQL injection but NoSQL injection
NoSQL, no SQL injections?
Pentesting with Metasploit
Physical Penetration Testing - RootedCON 2015
Oracle Database 12c Attack Vectors
44CON 2014 - Pentesting NoSQL DB's Using NoSQL Exploitation Framework, Franci...
Authentication(pswrd,token,certificate,biometric)
Attacking Oracle with the Metasploit Framework
Metasploit magic the dark coners of the framework
Dirty Little Secrets They Didn't Teach You In Pentest Class v2
Attacker Ghost Stories (CarolinaCon / Area41 / RVASec)
Windows Attacks AT is the new black
The Dirty Little Secrets They Didn’t Teach You In Pentesting Class
Writing malware while the blue team is staring at you
Golang concurrency design

Similar to hacking with node.JS (20)

ODP
Introduce about Nodejs - duyetdev.com
PPTX
A Journey Begin with Node.js
PPT
Nodejs Intro Part One
PDF
NodeJS for Beginner
PPT
Node js beginner
PPTX
Node js meetup
PPTX
Web with Nodejs
PPTX
Introduction to Node.js
PPTX
Kalp Corporate Node JS Perfect Guide
ODP
node.js - Fast event based web application development
PDF
Hello world - intro to node js
PPTX
PDF
Node.js introduction
PPTX
An overview of node.js
PDF
PPTX
A slightly advanced introduction to node.js
PDF
🚀 Node.js Simplified – A Visual Guide for Beginners!
PPTX
NodeJS guide for beginners
PPTX
Introduction to node.js By Ahmed Assaf
PPTX
Introduce about Nodejs - duyetdev.com
A Journey Begin with Node.js
Nodejs Intro Part One
NodeJS for Beginner
Node js beginner
Node js meetup
Web with Nodejs
Introduction to Node.js
Kalp Corporate Node JS Perfect Guide
node.js - Fast event based web application development
Hello world - intro to node js
Node.js introduction
An overview of node.js
A slightly advanced introduction to node.js
🚀 Node.js Simplified – A Visual Guide for Beginners!
NodeJS guide for beginners
Introduction to node.js By Ahmed Assaf

Recently uploaded (20)

PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
NewMind AI Weekly Chronicles - August'25-Week II
PDF
Approach and Philosophy of On baking technology
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
A comparative analysis of optical character recognition models for extracting...
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PPTX
Big Data Technologies - Introduction.pptx
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Machine learning based COVID-19 study performance prediction
Agricultural_Statistics_at_a_Glance_2022_0.pdf
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Advanced methodologies resolving dimensionality complications for autism neur...
NewMind AI Weekly Chronicles - August'25-Week II
Approach and Philosophy of On baking technology
Per capita expenditure prediction using model stacking based on satellite ima...
Unlocking AI with Model Context Protocol (MCP)
A comparative analysis of optical character recognition models for extracting...
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
20250228 LYD VKU AI Blended-Learning.pptx
Reach Out and Touch Someone: Haptics and Empathic Computing
Big Data Technologies - Introduction.pptx
Encapsulation_ Review paper, used for researhc scholars
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Mobile App Security Testing_ A Comprehensive Guide.pdf
“AI and Expert System Decision Support & Business Intelligence Systems”
Machine learning based COVID-19 study performance prediction

hacking with node.JS

Editor's Notes

  • #9: Demo hello-world.js and hello-world.phpThen hello-world-2.js Actually there isn't a lot new here. But then again, there was nothing new about node either. Node uses non-blocking IO for fast scalable servers. That's been known about for years among the C community. It uses event based, single thread javascript for logic. That's exactly what the browser has. Add these together and we all see the huge splash it's made. It's the unique combination of some simple but complimentary ideas that really make these projects zing.
  • #15: Re – usability of code. Give example of YUIExecute JS based on device.
  • #20: Hello-server.js
  • #24: Show npm search, install,ls, uninstallShow search.npmjs.orgMath.js