Nmap

Questions and comments specific to a particular plugin should go here.

Re: Nmap

Postby Pako » Thu Jul 24, 2014 10:04 am

shaggy79 wrote:What about Bluetooth Can EG tell if my phone is connected/disconnected
I can't test it as yet, I'm waiting for my Bluetooth 4.0 dongle to arrive
It's hard to answer.
You can see if an event is recorded in EventGhost when you connect / disconnect the iPhone via bluetooth.
If so, then maybe this way is applicable.
However, it can have a big impact on battery life.
It is also the question of what bluetooth makes while the phone is locked.
And I do not know how it is comfortable to use (unattended operation).

Pako
You know flattr ? You can Image
User avatar
Pako
Plugin Developer
 
Posts: 2247
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic

Re: Nmap

Postby shaggy79 » Thu Jul 24, 2014 3:11 pm

Pako,

I'm still waiting for my dongle. Probably Monday now.
I will test it then and let you know what happens.

I'm not bothered about battery life at the moment, Just want to get it to work.

What do you mean by "unattended operation"

Paul.
shaggy79
Experienced User
 
Posts: 129
Joined: Sun Jul 13, 2014 4:57 pm

Re: Nmap

Postby Pako » Thu Jul 24, 2014 4:19 pm

shaggy79 wrote:What do you mean by "unattended operation"
Probably not the right word.
Fully automatic operation.

Pako
You know flattr ? You can Image
User avatar
Pako
Plugin Developer
 
Posts: 2247
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic

Re: Nmap

Postby Pako » Fri Jul 25, 2014 10:06 am

@shaggy79:
Do you know the My Profiles application?
It looks like it would be (maybe) useful to you.

Pako
You know flattr ? You can Image
User avatar
Pako
Plugin Developer
 
Posts: 2247
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic

Re: Nmap

Postby shaggy79 » Mon Jul 28, 2014 8:19 pm

Pako,

Just had a quick look at that app from the link. :) thought it was really good until I scrolled down, :shock: Again it has to be "jailbroken" to use the app. :cry:
Nice try mate thanks for your effort though. 8)

Paul
shaggy79
Experienced User
 
Posts: 129
Joined: Sun Jul 13, 2014 4:57 pm

Re: Nmap

Postby krambriw » Tue Jul 29, 2014 3:59 pm

Dear Pako,

So far the Nmap is working fine in my tests. There is just one thing I would like to discuss with you and it is regarding settings of the 'Security factor' and 'Period of scannnig'.

Those are today a plugin setting and valid for all. What I think could be valuable to have is instead individual settings for specific MAC's (or groups if that is easier to implement).

Reason is that in the network, you might have very important devices you like to monitor and get a loss report quicker for and others (like in my case iPhones) you could set less quicker detection for. I think I remember earlier when I did some logging of pinging iPhones that when they go to sleep and disconnect from WiFi, they will wake up once every 12-15 minutes anyway (I assume this is also somehow effected by application settings like if you have activated push mail or not).

So in this scenario, in youtr network, you might need some devices with:

- 6/10 (high importance devices, detect within a minute if lost: security factor 6, period of scanning 10)
- 10/30 (normal important devices, detect within 5 minutes if lost: security factor 6, period of scanning 10)
- 15/60 (15 min iPhone presence lost detection)

Just a suggestion open for discussion

Best regards, Walter
My latest plugins
http://plugins.krambriw.net/index.html

Two men in front of a huge excavator...
- that beast steels work from 100 men with shovels
- well, a 1000 men could do the same using teaspoons
krambriw
Plugin Developer
 
Posts: 2566
Joined: Sat Jun 30, 2007 2:51 pm
Location: Stockholm, Sweden

Re: Nmap

Postby Pako » Wed Jul 30, 2014 7:57 am

Dear Walter,
I thank you for your interesting thoughts.
I'm for it.
I have such an idea:
There will be a option to create a profile. Each profile will have a name (Default, Important, Normal, Apple ...) and the ability to adjust both the parameters of the "reaction time" (security factor and period of scanning).
For each named device will be assigned one of the profiles.
Step for scanning period (and also the lowest value) will be 10 seconds.
Period of scanning must be (for each profile) integer multiple of this step.
Do you think it is a good solution?

Note:
I found during experimentation, that (although scanning usually takes about 6 seconds) from time to time some of scanning takes longer (perhaps 40 seconds).
It is clear that in this case it can not function as expected...

Best regards,
Pako
You know flattr ? You can Image
User avatar
Pako
Plugin Developer
 
Posts: 2247
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic

Re: Nmap

Postby krambriw » Wed Jul 30, 2014 9:00 am

Dear Pako,

To me this sounds as very good! I just realize, maybe allowing plugin multi-load would be the same???

There was also a request earlier from another user:
I think, the scanning period should be chosen in steps of 5 sec.


Maybe should be considered at the same time? Maybe minimum scanning time should be configurable at 5 seconds (for small networks)?


BestR Walter
My latest plugins
http://plugins.krambriw.net/index.html

Two men in front of a huge excavator...
- that beast steels work from 100 men with shovels
- well, a 1000 men could do the same using teaspoons
krambriw
Plugin Developer
 
Posts: 2566
Joined: Sat Jun 30, 2007 2:51 pm
Location: Stockholm, Sweden

Re: Nmap

Postby Pako » Sun Aug 03, 2014 6:07 am

Dear Walter,
krambriw wrote:Maybe should be considered at the same time? Maybe minimum scanning time should be configurable at 5 seconds (for small networks)?
Pako wrote:Note:
I found during experimentation, that (although scanning usually takes about 6 seconds) from time to time some of scanning takes longer (perhaps 40 seconds).
It is clear that in this case it can not function as expected...
I have had quite a bit of time to think.
I think I'll stick with the value of 10 seconds.
Reason: It is much more likely to scanning end up before timeout, so usually it will work as expected.

BTW: I released a new version (only a small bugfix).

Best regards,
Pako
You know flattr ? You can Image
User avatar
Pako
Plugin Developer
 
Posts: 2247
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic

Re: Nmap

Postby Pako » Mon Sep 15, 2014 2:37 pm

I've just released a new version (1.0) in which are applied (perhaps all) of enhancement requests.
Much work done krambriw on it. He did beta testing, proofreading, and into the description he added important information.
Thank you Walter!

Pako
You know flattr ? You can Image
User avatar
Pako
Plugin Developer
 
Posts: 2247
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic

Re: Nmap

Postby krambriw » Wed Oct 15, 2014 12:45 pm

Dear Pako,

Your NMA plugin has been and is working fine since long. I have just seen a minor that happens sometimes for me when NMAP tries to send me a message. It could of course be something on my side.

This is what I get in the log, I am not sure it helps to find the issue but I hope. What is sent is just a text string, should I add a \n\r at the end of strings?

My kindest regards, Walter

Code: Select all
14:36:24   NMA: Sending notification failed.
14:36:24   Cause: _ssl.c:480: EOF occurred in violation of protocol (error 8)
My latest plugins
http://plugins.krambriw.net/index.html

Two men in front of a huge excavator...
- that beast steels work from 100 men with shovels
- well, a 1000 men could do the same using teaspoons
krambriw
Plugin Developer
 
Posts: 2566
Joined: Sat Jun 30, 2007 2:51 pm
Location: Stockholm, Sweden

Re: Nmap

Postby Pako » Thu Oct 16, 2014 8:54 am

Dear Walter,
Your post brought about a smile on my face.
Indeed, it reminded me of one (for us) very known comic skits, where one comedian says: "You're crying beautiful, but on a foreign grave."
So, you wrote it in a completely different topic ...
It does not matter, but I do not know what I can do with it.
In addition, I use the NMA (NMS) no longer, I went on PushBullet.

Best regards,
Luboš
You know flattr ? You can Image
User avatar
Pako
Plugin Developer
 
Posts: 2247
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic

Re: Nmap

Postby krambriw » Thu Oct 16, 2014 2:24 pm

:oops:

Embarrassing indeed, I realize my mistake, sorry for confusion..

My kindest regards & apologizes,
Walter
My latest plugins
http://plugins.krambriw.net/index.html

Two men in front of a huge excavator...
- that beast steels work from 100 men with shovels
- well, a 1000 men could do the same using teaspoons
krambriw
Plugin Developer
 
Posts: 2566
Joined: Sat Jun 30, 2007 2:51 pm
Location: Stockholm, Sweden

Re: Nmap

Postby Pako » Sun Jan 04, 2015 4:25 pm

I was asked to create detailed instructions on how to set EventGhost, for the following tasks:
It is required that an application will automatically turn off when I'm leaving home and turned on again when I return.
We'll need just this plugin - Nmap.
The prerequisite, of course, is that you have installed the program EventGhost.
If not, you can always find the latest release HERE. Download the installation file and run it.
Note: Another prerequisite for the functioning is an Android smartphone.
It was found that the iPhone not work well in this case.

I will do the instruction using the numbered steps, so there will be the opportunity to refer to the individual steps:
1) Installing Nmap program. Nmap plugin can only work if Nmap program is installed on your computer.
The program can be downloaded here. Currently it is: nmap-6.47-setup.exe.
Run the downloaded program and follow the instructions. Installing and running WinPcap confirm.

2) Install the plugin Nmap. Download the latest __init__.py file, which can be found in the initial post in this topic.
In the folder ...\EventGhost\plugins create a new folder Nmap and downloaded file __init__.py move into it.

3) Restart (close and reopen) EventGhost and add a new plugin into configuration (Configuration->Add plugin..., Other->Nmap).
This opens the main configuration dialog of plugin. Please read the information that is on the Description tab !

4) Check path (and correct it, if necessary) to the installed Nmap program and set the IP address of your home network:
Nmap_01.png
Nmap_01.png (4.37 KiB) Viewed 4990 times
5) Press "Apply".
After a few seconds you should be able to press "Add new" button under "Named devices". Do it. A small window opens for adding a device:
Nmap_02.png
Nmap_02.png (4.99 KiB) Viewed 4990 times
6) From the drop-down menu to select your smartphone, assign a nickname, and select a profile (so far there is only Default). Click OK to confirm.

7) Confirm the setting of the entire dialog with OK.

At this moment plugin should already trigger events based on connect/disconnect your smartphone to your home network. It is possible that it will be necessary
adjust the settings of the respective profile (Default if you have not changed it).
If it works reliably, we can continue.

Pako
You know flattr ? You can Image
User avatar
Pako
Plugin Developer
 
Posts: 2247
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic

Re: Nmap

Postby Pako » Sun Jan 04, 2015 5:28 pm

8] Creating and setup of macros.
Suppose, that nickanme of our phone is "MySmartphone". Anywhere in our configuration tree, create the following structure:
Nmap_03.png
Nmap_03.png (8.57 KiB) Viewed 4987 times
9) Content Python Script is as follows (chrome should be killed just in case you are using PushBullet extension):
Code: Select all
import os
os.system("taskkill /F /IM pushbullet_client.exe")
os.system("taskkill /F /IM chrome.exe")

10) Setup of the action to start the chrome (start pushbullet.exe is similar):
Nmap_04.png
Pako
You know flattr ? You can Image
User avatar
Pako
Plugin Developer
 
Posts: 2247
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic

PreviousNext

Return to Plugin Support

Who is online

Users browsing this forum: No registered users and 4 guests