Posts

NMAP CODES

NMAP Training NMAP's Some Commands ## The single IP is scanning ## nmap 192.168.0.0 ## Scan a host name ## nmap www.examplesite.com ## Host name with more info ## nmap -v www.site.com ## Multiple scanning ## The IP addresses nmap 192.168.1.1 22.15.2.2 88.1.3.5 Range of IP nmap 192.168.1.1-20 Range of IP with "*" sign nmap 192.168.0.* Entire subnet nmap 192.168.0.0/24 ...

JSON APIs : User's GPS Coordinates

Image

Add labels in D3

Image
HTML CSS OUTPUT

Dynamically Set the Coordinates with d3.js

Image
                                                                  output :

Dynamic Data in D3

Image
Output

JS-ReactRedux : Connect Redux to the Messages App

// Redux: const ADD = 'ADD' ; const addMessage = (message) => { return { type : ADD, message: message } }; const messageReducer = (state = [], action) => { switch (action.type) { case ADD: return [ ...state, action.message ]; default : return state; } }; const store = Redux.createStore(messageReducer); // React: class Presentational extends React.Component { constructor (props) { super (props); this .state = { input: '' , messages: [] } this .handleChange = this .handleChange.bind( this ); this .submitMessage = this .submitMessage.bind( this ); } handleChange(event) { this .setState({ input: event.target.value }); } submitMessage() { const currentMessage = this .state.input; this .setState({ input: '' , messages: this .state.message...

JS-Redux: action.type && store.subscribe() && Combine Multiple Reducer

/*const For action.type*/ const LOGIN='LOGIN'; const LOGOUT='LOGOUT'; const defaultState = {   authenticated: false }; const authReducer = (state = defaultState, action) => {   switch (action.type) {     case LOGIN:       return {         authenticated: true       }     case LOGOUT:       return {         authenticated: false       }     default:       return state;   } }; const store = Redux.createStore(authReducer); const loginUser = () => {   return {     type: LOGIN   } }; const logoutUser = () => {   return {     type: LOGOUT   } }; /*store.subscribe() function*/ const ADD = 'ADD'; const reducer = (state = 0, action) => {   switch(action.type) {     case ADD: ...