Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Existential doubts u.u #72

Open
kalicams opened this issue Jan 7, 2024 · 4 comments
Open

Existential doubts u.u #72

kalicams opened this issue Jan 7, 2024 · 4 comments

Comments

@kalicams
Copy link

kalicams commented Jan 7, 2024

Hi I have used the script for hundreds of hours for fun. You are the best. i have a question. is it possible to do a search with masscan but using the rules.csv?.since it is a lot of work for the script to process 500.000 ips:ports and only find 0.5% of cameras in 96 or more hours (masscan alone is not enough). is there any possibility to apply a filter or speed that up?. I ask all this because when I search for rare ports the success rate is too low and I would like to be able to apply masscan and a filter before passing it through the script.Thanksss

@jorhelp
Copy link
Owner

jorhelp commented Jan 7, 2024

We can use powerful port scanner to obtain active hosts, thereby reducing the scanning range of Ingram and improving the running speed. The specific method is to organize the result file of the port scanner into the format of ip:port and use it as the input file of Ingram

Here is a brief demonstration of masscan as an example (the detailed usage of masscan will not be repeated here).

First, use masscan to scan the surviving host on port 80 or 8000-8008 (you sure can change the port anything else if you want): masscan -p80,8000-8008 -iL INPUT -oL OUTPUT --rate 8000

After masscan is done, sort out the result file: grep 'open' OUTPUT | awk '{printf"%s:%s\n", $4, $3}' > input

Then: python run_ingram.py -i input -o output

@kalicams
Copy link
Author

kalicams commented Jan 7, 2024

We can use powerful port scanner to obtain active hosts, thereby reducing the scanning range of Ingram and improving the running speed. The specific method is to organize the result file of the port scanner into the format of ip:port and use it as the input file of Ingram

Here is a brief demonstration of masscan as an example (the detailed usage of masscan will not be repeated here).

First, use masscan to scan the surviving host on port 80 or 8000-8008 (you sure can change the port anything else if you want): masscan -p80,8000-8008 -iL INPUT -oL OUTPUT --rate 8000

After masscan is done, sort out the result file: grep 'open' OUTPUT | awk '{printf"%s:%s\n", $4, $3}' > input

Then: python run_ingram.py -i input -o output

Thank you very much for the answer, yes I use masscan before using ingram but I want to use another additional filter. sometimes example. I get 500.000 ip from port 15000 with masscan and from those 500.000, only 250 belong to cameras. So even using masscan ingram is trying very hard to analyze all that being that the conversion is very low. My question was if there is the possibility with some other software or script to filter the result that is obtained with masscan.

Example

  1. Scanning 141.0.0.0.0 to 141.255.255.255 (port 14000) in masscan
  2. Filter the result obtained in masscan in some other script or software (with hikvision rules).
  3. Then finally place the filtered result in ingram.

@InvisibleRagman
Copy link

Hi I have used the script for hundreds of hours for fun. You are the best. i have a question. is it possible to do a search with masscan but using the rules.csv?.since it is a lot of work for the script to process 500.000 ips:ports and only find 0.5% of cameras in 96 or more hours (masscan alone is not enough). is there any possibility to apply a filter or speed that up?. I ask all this because when I search for rare ports the success rate is too low and I would like to be able to apply masscan and a filter before passing it through the script.Thanksss

I would retrieve rare ports using a Shodan results list.

@kalicams
Copy link
Author

kalicams commented Jan 8, 2024

Hi I have used the script for hundreds of hours for fun. You are the best. i have a question. is it possible to do a search with masscan but using the rules.csv?.since it is a lot of work for the script to process 500.000 ips:ports and only find 0.5% of cameras in 96 or more hours (masscan alone is not enough). is there any possibility to apply a filter or speed that up?. I ask all this because when I search for rare ports the success rate is too low and I would like to be able to apply masscan and a filter before passing it through the script.Thanksss

I would retrieve rare ports using a Shodan results list.

you say to search for rare ports there? and then do my search in masscan right?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants