Skip to main content

NMAP - What is NMAP and what is it used for?

What is NMAP & use of it?Basically NMAP is a free security scanner and a network mapper mainly used by system administrators, hackers , pentesters and etc. These are few use cases of NMAP and there are tons of ways to use NMAP.Finding hosts in the networkports used by hosts and its statusFinding vulnerabilitiesInformation on versions and OS used
Basic NMAP Scan nmap -sP 192.168.1.0/24 Ping multiple host to check if the hosts are alive or not

TCP scan (full open scan) nmap -sT 192.168.1.9 This is a TCP connect scan. TCP connections are done with a 3 way handshake SYNSYN-ACKACKThis is otherwise called as full open scan


Stealth Mode Scan (Half open scan) namp -sS 192.168.1.9 This is known as SYN scan / Half open scan / Stealth scan SYNSYN-ACKRST



OS detection scan namp -O 192.168.1.6
With this command you can get which OS the system is running. Example: Windows, Linux, Android etc.
NMAP with OS detection, traceroute, host discovery and more nmap -A 192.168.1.6
This is aggressive scan …

TIPS#01: How to run a script as a Linux service?

If you want to run your own script for example a shell script, python etc as a Linux service, please follow this guide. I have tested and already using this methods and this works perfectly. In this example i am using an Ubuntu Linux and a shell script (which will run ngrok as service) if you want to know more about ngrok check out there website.

STEP#1: Prepare you script file that you want to run as a service.










once you are done with editing save and exit

STEP#2: Prepare the service

Go to "/etc/systemd/system" and create a file with your naming preferences but should end with a ".service" for example my file name was ngrok.service











This how the file should look like. ExecStart is where you define the script that you want to run. Once you done editing save the file and follow the commands as follows.

To enable the service 
systemctl enable ngrok.service

Reload the deamon
systemctl daemon-reload

Test the service

if you run "service ngrok start" it will start the service and you can type "service ngrok status" to check if the service is running or not and you can top the service by "service ngrok stop" command.








if it is running it will show as above image.
I hope this tech tip will help you in doing your own projects. Please do not forget to subscribe or give a comment in case if you have any questions.

Comments

Popular posts from this blog

Clover Display M302 hack

Its been a while i have this LCD and today i thought of connecting the LCD display to Arduino. Unfortunately i could not found any pin outs of this from any where and from the manufacture. Actually this is very old model which i got from old FAX machine and this display is a very cheap from online sources.
Clover Display M302 PCB Ver 1.0 (16x2) which has 10 pin flat cable. After researching for a while from the internet i have seen in many forums people are asking for help on how to connect it and what is the pin configurations? so i thought of helping them as well as my self at the same time.
After going through some of my old collections of Russian data of displays and things i found a basic diagram of how 10 pin LCD display configuration. 
PIN1   - VSS PIN2   - VDD PIN3   - CONTRAST PIN4   - RS PIN5   - R/W PIN6   - ENABLE PIN7   - DB4 PIN8   - DB5 PIN9   - DB6 PIN10 - DB7
I tried these configurations and wired up to the arduino with the LCD sketch and it worked on the first try. …

SIMCOM SIM900A fixed

Since everyone is interested in this post and lots of request comes to get the firmware, i have put a link so that everyone can download it easily. SIMCOM 900A firmware

Its been a while that i was trying to fix the SIM900A GSM module. This module support local GSM band but after some researches it was concluded that it is carrier locked :(. After long conversion of days to actual chip manufacture SIMCOM, they told it can be fixed by updating its firmware to latest original version but unfortunately they don't provide firmware to small parties.

I never stop trying to get the firmware and SIMCOM again replied, this time they said contact local SIMCOM supplier and request for firmware. But this little Maldives don't have SIMCOM or any electronics manufacturer. So i contacted my friend coody from NOA LABS/Smart prototyping (a friend in china) and told him to help me. I explained him what to do so he can communicate with SIMCOM in china.

Finally he sends and email saying that he g…

TCP communication from NEOWAY M590E- Successful

Some of the GSM/GPRS chips do not support HTTP services and since the modems are controlled via AT commands, the AT command sets are very limited to HTTP commands in NEOWAY M590E.

The only option to communicate with any cloud based or locally hosted server was using TCP protocol. I have used HTTP services in many of my projects and experiments, it is easy and with few lines of code can manage an HTTP requests. For weeks i have been struggling with TCP request and every time it fails to connect or sometimes data is sent but from server side there is no new data fetched.

Basically TCP is transport layer in OSI model and HTTP is in application layer. TCP will do a socket based connection to servers predefined port. For example  test.com:8989. what i mean is it needs a listener to listen to port that you define or open to use.

After weeks of reading articles and AT command sets thoroughly, finally i managed to handle a TCP request from modem. But still it fails sometimes or unable to conn…