ports – nmap different results when scanning from different sources

I get slightly different results when scanning an IP from 2 different hosts.
Here is Scan 1 from an Internet server with a public IP:

Nmap 7.80 scan initiated Tue Jan 21 18:48:08 2020 as: nmap -Pn -sS -p25 -T 2 --reason -v 3.XXX.XXX.XXX
Nmap scan report for XXX.eu-central-1.compute.amazonaws.com
Host is up, received user-set.

PORT   STATE    SERVICE REASON
25/tcp filtered smtp    no-response

Read data files from: /usr/bin/../share/nmap
Nmap done at Tue Jan 21 18:48:22 2020 -- 1 IP address (1 host up) scanned in 13.49 seconds

And here scan 2 from a local network PC:

root@kali:/# nmap -Pn -sS -p25 -T 2 --reason -v 3.XXX.XXX.XXX
Starting Nmap 7.80 ( https://nmap.org ) at 2020-01-21 17:52 CET
( ... )
Scanning XXX.eu-central-1.compute.amazonaws.com (1 port)
Completed SYN Stealth Scan at 17:52, 0.40s elapsed (1 total ports)
Nmap scan report for XXX.eu-central-1.compute.amazonaws.com
Host is up, received user-set (0.0013s latency).

PORT   STATE  SERVICE REASON
25/tcp closed smtp    reset ttl 62

Read data files from: /usr/bin/../share/nmap
Nmap done: 1 IP address (1 host up) scanned in 0.51 seconds
           Raw packets sent: 1 (44B) | Rcvd: 1 (40B)

The nmap command line was exactly the same, but the port status differs.
And since my local machine gets more information, it gets a real response from the objective, it shouldn't be a problem or something related to the firewall. Similary.

Any idea why I get different results?

Bluetooth: hc10: failed to disable LE scanning: status 0x1f

When I put my computer into sleep mode (that is, I don't turn it off, but I just close the lid), a black screen often appears with just this error message.

I have an Ubuntu 18.04 installed on a Lenovo Y50.

Negative scanner: Epson Scan 2 does not show the transparency option for movie scanning

I have been using my Epson V600 (or sometimes GT-X820) for 6 years. I have reviewed Apple's updates and broken the Epson software before.
(Currently running OSX 15.1 Cat)

However, this time with the introduction of Epson Scan 2, I am in a difficult situation.


I currently downloaded and installed all the correct drivers and updated all other related programs, but the software does not show me any transparency options to scan my movie.
Epson Scanner 2 source document reference photo of the application


This is what I am seeing, but when I looked around I found this video in which the guy who used Epson Scan could correctly select the transparency mode.

Screen capture of the video referred to in the previous paragraph with the correct settings shown.

I tried to install on the Epson Scan 2 that I installed on the US site. UU. With an Epson Scan version of the JP site (Japan), but that didn't work.

I will try to verify and see if uninstalling and reinstalling everything fixes it, but I'm not sure if this will work.
If there is any other recommendation, I am aware, since I can currently only make it work with VueScan, which I do not want to disburse $ 80 to buy now.

taxonomy terms: how to customize the drupal 8 scanning path

I am trying to customize the drupal 8 navigation path to get something like this:

Home> category> article title.

I wrote this and wrote the code below.

namespace Drupalmodule_demoBreadcrumb;

use DrupalCoreBreadcrumbBreadcrumbBuilderInterface;
use DrupalCoreRoutingRouteMatchInterface;
use DrupalCoreBreadcrumbBreadcrumb;
use DrupalCoreLink;
use DrupalCoreSessionAccountInterface;
use DrupalCoreStringTranslationStringTranslationTrait;
use DrupaltaxonomyEntityTerm;

class ArticleBreadcrumbBuilder implements BreadcrumbBuilderInterface {

    public function applies(RouteMatchInterface $route_match) {
        $parameters = $route_match->getParameters()->all();
        if(isset($parameters('node'))) {
            return $parameters('node')->getType() === 'article';
        }

    }

    public function build(RouteMatchInterface $route_match) {

        $breadcrumb = new Breadcrumb();

        $term = $route_match->getParameter('taxonomy_term');

        $breadcrumb->addCacheContexts(("url"));

        $breadcrumb->addLink(Link::createFromRoute(t('Home'), ''));

        $breadcrumb->addLink(Link::createFromRoute(t('Articles'), ''));

        $breadcrumb->addLink(Link::createFromRoute($term->getName(), 'entity.taxonomy_term.canonical', ('taxonomy_term' => $term->id())));

        $request = Drupal::request();
        $route_match = Drupal::routeMatch();
        $page_title = Drupal::service('title_resolver')->getTitle($request, $route_match->getRouteObject());
        if (!empty($page_title)) {
            $breadcrumb->addLink(Link::createFromRoute($page_title, ''));
        }

        return $breadcrumb;
    }
}

But I have the error below.

The website encountered an unexpected error. Please try again later.
Error: Call a member function getName () in null in Drupal module_demo Breadcrumb ArticleBreadcrumbBuilder-> build () (line 34 of modules / custom / module_demo / src / Breadcrumb / ArticleBreadcrumbBuilder.php).

Apparently the problem is with getName() and id().

Can anyone tell me where the error is?
Thank you.

postgresql: the condition of addition (similarity) causes sequence scanning

Struggling with this a bit, since I would have expected the performance to be better by combining the queries that were separated.

Queries occur using Django ORM 1.11.

With similarity in the where cause, full sequence scans are performed on both products_displayproduct and products_displayproductvariant. Without it and running both queries separately, there is no sequence scan.

    d+ products_displayproduct                                                 Table "public.products_displayproduct"
        Column         |           Type           | Collation | Nullable |                       Default                       | Storage  | Stats target | Description 
-----------------------+--------------------------+-----------+----------+-----------------------------------------------------+----------+--------------+-------------
 id                    | integer                  |           | not null | nextval('products_displayproduct_id_seq'::regclass) | plain    |              | 
 date_created          | timestamp with time zone |           | not null |                                                     | plain    |              | 
 date_updated          | timestamp with time zone |           | not null |                                                     | plain    |              | 
 name                  | character varying(255)   |           | not null |                                                     | extended |              | 
 sub_title             | character varying(255)   |           |          |                                                     | extended |              | 
 tags                  | character varying(255)   |           |          |                                                     | extended |              | 
 has_multiple_variants | boolean                  |           | not null |                                                     | plain    |              | 
 rating                | numeric(3,2)             |           | not null |                                                     | main     |              | 
 reviews               | smallint                 |           | not null |                                                     | plain    |              | 
 is_toppick            | boolean                  |           | not null |                                                     | plain    |              | 
 brand_id              | integer                  |           |          |                                                     | plain    |              | 
 placement_id          | integer                  |           | not null |                                                     | plain    |              | 
 poster_image_id       | integer                  |           |          |                                                     | plain    |              | 
Indexes:
    "products_displayproduct_pkey" PRIMARY KEY, btree (id)
    "products_displayproduct_brand_id_c215ec11" btree (brand_id)
    "products_displayproduct_is_toppick_3901660d" btree (is_toppick)
    "products_displayproduct_name_6e5686c5" btree (name)
    "products_displayproduct_name_6e5686c5_like" btree (name varchar_pattern_ops)
    "products_displayproduct_name_fsimilarity_new" gist (name gist_trgm_ops)
    "products_displayproduct_placement_id_90f0d4a2" btree (placement_id)
    "products_displayproduct_poster_image_id_7c188e4d" btree (poster_image_id)
    "products_displayproduct_rating_98794c10" btree (rating)
    "products_displayproduct_reviews_4d5513bb" btree (reviews)
    "products_displayproduct_sub_title_72354226" btree (sub_title)
    "products_displayproduct_sub_title_72354226_like" btree (sub_title varchar_pattern_ops)
    "products_displayproduct_tags_ab900c6b" btree (tags)
    "products_displayproduct_tags_ab900c6b_like" btree (tags varchar_pattern_ops)
Foreign-key constraints:
    "products_displayprod_brand_id_c215ec11_fk_products_" FOREIGN KEY (brand_id) REFERENCES products_displaybrand(id) DEFERRABLE INITIALLY DEFERRED
    "products_displayprod_placement_id_90f0d4a2_fk_retailers" FOREIGN KEY (placement_id) REFERENCES retailers_displaysubcategory(id) DEFERRABLE INITIALLY DEFERRED
    "products_displayprod_poster_image_id_7c188e4d_fk_products_" FOREIGN KEY (poster_image_id) REFERENCES products_displayproductimage(id) DEFERRABLE INITIALLY DEFERRED
Referenced by:
    TABLE "intake_intakeproduct" CONSTRAINT "intake_intakeproduct_displayed_as_id_479d7ed0_fk_products_" FOREIGN KEY (displayed_as_id) REFERENCES products_displayproduct(id) DEFERRABLE INITIALLY DEFERRED
    TABLE "products_displayproductvariant" CONSTRAINT "products_displayprod_product_id_210696e5_fk_products_" FOREIGN KEY (product_id) REFERENCES products_displayproduct(id) DEFERRABLE INITIALLY DEFERRED
    TABLE "reviews_displayproductreview" CONSTRAINT "reviews_displayprodu_product_id_1d59703e_fk_products_" FOREIGN KEY (product_id) REFERENCES products_displayproduct(id) DEFERRABLE INITIALLY DEFERRED

products_displayproductvariant

d+ products_displayproductvariant;
                                                              Table "public.products_displayproductvariant"
      Column      |           Type           | Collation | Nullable |                          Default                           | Storage  | Stats target | Description 
------------------+--------------------------+-----------+----------+------------------------------------------------------------+----------+--------------+-------------
 id               | integer                  |           | not null | nextval('products_displayproductvariant_id_seq'::regclass) | plain    |              | 
 name             | character varying(128)   |           |          |                                                            | extended |              | 
 sub_title        | character varying(255)   |           |          |                                                            | extended |              | 
 date_created     | timestamp with time zone |           | not null |                                                            | plain    |              | 
 date_updated     | timestamp with time zone |           | not null |                                                            | plain    |              | 
 description      | text                     |           |          |                                                            | extended |              | 
 features         | text                     |           |          |                                                            | extended |              | 
 content          | text                     |           |          |                                                            | extended |              | 
 warranty_string  | character varying(255)   |           |          |                                                            | extended |              | 
 identifier_upc   | character varying(255)   |           |          |                                                            | extended |              | 
 identifier_model | character varying(255)   |           |          |                                                            | extended |              | 
 product_id       | integer                  |           | not null |                                                            | plain    |              | 
Indexes:
    "products_displayproductvariant_pkey" PRIMARY KEY, btree (id)
    "products_displayproductvariant_content_2318bca5" btree (content)
    "products_displayproductvariant_content_2318bca5_like" btree (content text_pattern_ops)
    "products_displayproductvariant_description_74f9acaa" btree (description)
    "products_displayproductvariant_description_74f9acaa_like" btree (description text_pattern_ops)
    "products_displayproductvariant_features_a0dd52ef" btree (features)
    "products_displayproductvariant_features_a0dd52ef_like" btree (features text_pattern_ops)
    "products_displayproductvariant_identifier_model_4728e069" btree (identifier_model)
    "products_displayproductvariant_identifier_model_4728e069_like" btree (identifier_model varchar_pattern_ops)
    "products_displayproductvariant_identifier_upc_ea927ee2" btree (identifier_upc)
    "products_displayproductvariant_identifier_upc_ea927ee2_like" btree (identifier_upc varchar_pattern_ops)
    "products_displayproductvariant_name_b4db6c57" btree (name)
    "products_displayproductvariant_name_b4db6c57_like" btree (name varchar_pattern_ops)
    "products_displayproductvariant_product_id_210696e5" btree (product_id)
    "products_displayproductvariant_sub_title_d2845610" btree (sub_title)
    "products_displayproductvariant_sub_title_d2845610_like" btree (sub_title varchar_pattern_ops)
    "products_displayproductvariant_warranty_string_9b748bb6" btree (warranty_string)
    "products_displayproductvariant_warranty_string_9b748bb6_like" btree (warranty_string varchar_pattern_ops)
Foreign-key constraints:
    "products_displayprod_product_id_210696e5_fk_products_" FOREIGN KEY (product_id) REFERENCES products_displayproduct(id) DEFERRABLE INITIALLY DEFERRED
Referenced by:
    TABLE "intake_intakeproductvariant" CONSTRAINT "intake_intakeproduct_displayed_as_id_4a21f6fa_fk_products_" FOREIGN KEY (displayed_as_id) REFERENCES products_displayproductvariant(id) DEFERRABLE INITIALLY DEFERRED
    TABLE "products_displayproductspec" CONSTRAINT "products_displayprod_product_variant_id_249947b4_fk_products_" FOREIGN KEY (product_variant_id) REFERENCES products_displayproductvariant(id) DEFERRABLE INITIALLY DEFERRED
    TABLE "products_displayproductimage" CONSTRAINT "products_displayprod_product_variant_id_54c522eb_fk_products_" FOREIGN KEY (product_variant_id) REFERENCES products_displayproductvariant(id) DEFERRABLE INITIALLY DEFERRED
    TABLE "products_displayproductattr" CONSTRAINT "products_displayprod_product_variant_id_7ac08a9e_fk_products_" FOREIGN KEY (product_variant_id) REFERENCES products_displayproductvariant(id) DEFERRABLE INITIALLY DEFERRED
    TABLE "products_displayproductaccess" CONSTRAINT "products_displayprod_product_variant_id_ab7b9896_fk_products_" FOREIGN KEY (product_variant_id) REFERENCES products_displayproductvariant(id) DEFERRABLE INITIALLY DEFERRED
    TABLE "shop_pricealert" CONSTRAINT "shop_pricealert_product_id_cb755f29_fk_products_" FOREIGN KEY (product_id) REFERENCES products_displayproductvariant(id) DEFERRABLE INITIALLY DEFERRED

products_displayproductaccess

d+ products_displayproductaccess;
                                                               Table "public.products_displayproductaccess"
       Column       |           Type           | Collation | Nullable |                          Default                          | Storage  | Stats target | Description 
--------------------+--------------------------+-----------+----------+-----------------------------------------------------------+----------+--------------+-------------
 id                 | integer                  |           | not null | nextval('products_displayproductaccess_id_seq'::regclass) | plain    |              | 
 date_created       | timestamp with time zone |           | not null |                                                           | plain    |              | 
 date_updated       | timestamp with time zone |           | not null |                                                           | plain    |              | 
 price              | numeric(16,2)            |           |          |                                                           | main     |              | 
 quantity           | smallint                 |           | not null |                                                           | plain    |              | 
 department         | character varying(64)    |           |          |                                                           | extended |              | 
 aisle              | character varying(64)    |           |          |                                                           | extended |              | 
 original_price     | numeric(16,2)            |           |          |                                                           | main     |              | 
 sale_until         | date                     |           |          |                                                           | plain    |              | 
 location_id        | integer                  |           | not null |                                                           | plain    |              | 
 product_variant_id | integer                  |           | not null |                                                           | plain    |              | 
 retailer_id        | integer                  |           | not null |                                                           | plain    |              | 
Indexes:
    "products_displayproductaccess_pkey" PRIMARY KEY, btree (id)
    "products_di_locatio_f11b68_idx" btree (location_id, product_variant_id)
    "products_displayproductaccess_aisle_61457682" btree (aisle)
    "products_displayproductaccess_aisle_61457682_like" btree (aisle varchar_pattern_ops)
    "products_displayproductaccess_date_created_d38d9b4e" btree (date_created)
    "products_displayproductaccess_date_updated_0c689801" btree (date_updated)
    "products_displayproductaccess_department_a7031553" btree (department)
    "products_displayproductaccess_department_a7031553_like" btree (department varchar_pattern_ops)
    "products_displayproductaccess_location_id_fe5aeb43" btree (location_id)
    "products_displayproductaccess_original_price_904da60f" btree (original_price)
    "products_displayproductaccess_price_0e2f3286" btree (price)
    "products_displayproductaccess_product_variant_id_ab7b9896" btree (product_variant_id)
    "products_displayproductaccess_quantity_72b1a17c" btree (quantity)
    "products_displayproductaccess_retailer_id_70041027" btree (retailer_id)
    "products_displayproductaccess_sale_until_afb569bf" btree (sale_until)
Foreign-key constraints:
    "products_displayprod_location_id_fe5aeb43_fk_retailers" FOREIGN KEY (location_id) REFERENCES retailers_baselocation(id) DEFERRABLE INITIALLY DEFERRED
    "products_displayprod_product_variant_id_ab7b9896_fk_products_" FOREIGN KEY (product_variant_id) REFERENCES products_displayproductvariant(id) DEFERRABLE INITIALLY DEFERRED
    "products_displayprod_retailer_id_70041027_fk_retailers" FOREIGN KEY (retailer_id) REFERENCES retailers_retailer(id) DEFERRABLE INITIALLY DEFERRED
Referenced by:
    TABLE "intake_intakeproductaccess" CONSTRAINT "intake_intakeproduct_displayed_as_id_5b030a8f_fk_products_" FOREIGN KEY (displayed_as_id) REFERENCES products_displayproductaccess(id) DEFERRABLE INITIALLY DEFERRED
    TABLE "shop_shoppinglistitem" CONSTRAINT "shop_shoppinglistite_access_id_6217e45f_fk_products_" FOREIGN KEY (access_id) REFERENCES products_displayproductaccess(id) DEFERRABLE INITIALLY DEFERRED

Query attempt:

SELECT
   "products_displayproduct"."id",
   "products_displayproduct"."date_created",
   "products_displayproduct"."date_updated",
   "products_displayproduct"."name",
   "products_displayproduct"."sub_title",
   "products_displayproduct"."tags",
   "products_displayproduct"."has_multiple_variants",
   "products_displayproduct"."placement_id",
   "products_displayproduct"."brand_id",
   "products_displayproduct"."poster_image_id",
   "products_displayproduct"."rating",
   "products_displayproduct"."reviews",
   "products_displayproduct"."is_toppick",
   (
      "products_displayproduct"."name" <-> 'Tundra Tested Winch with Remote Control, 2,000-lb'
   )
   AS "similarity" 
FROM
   "products_displayproduct" 
   INNER JOIN
      "products_displayproductvariant" 
      ON ("products_displayproduct"."id" = "products_displayproductvariant"."product_id") 
   INNER JOIN
      "products_displayproductaccess" 
      ON ("products_displayproductvariant"."id" = "products_displayproductaccess"."product_variant_id") 
WHERE
   (
      "products_displayproductaccess"."location_id" IN 
      (
         1,
         2,
         3,
         751,
         1079
      )
      AND 
      (
         "products_displayproduct"."name" <-> 'Tundra Tested Winch with Remote Control, 2,000-lb'
      )
      > 0.21 
      AND NOT ("products_displayproduct"."id" IN 
      (
         60267
      )
)
   )
ORDER BY
   "similarity" DESC
LIMIT 10;

Results in:

enter the description of the image here

But doing both queries separately results in an acceptable query response time.

enter the description of the image here

enter the description of the image here

Separately, it also seems that the indexes are being used first and correctly.

enter the description of the image here

enter the description of the image here

In the first query, the results do not use the indexes until later and only for unrelated fields:

enter the description of the image here

How to prevent Google Drive from scanning OCR to your image files?

I noticed that the image files in Google Drive are & # 39; scanned by OCR & # 39; in search of words (letters, numbers).
Because they appear in Google Drive search results after …
Is it possible to disable this & # 39; scan ocr & # 39; and automatic indexing? For example, for security reasons …

Certificate Authority – Purpose of decryption and scanning of HTTPS traffic

Navigating to the following URL link from Mozilla Firefox and entering some link to the website and clicking on View, it shows the Certificate Viewer

chrome://pippki/content/exceptionDialog.xul

enter the description of the image here

enter the description of the image here

After enabling Decrypt and analyze HTTPS traffic from the firewall rule, all clients cannot go to www because they do not have the CA SSL Certificate.

Then they have included the SecurityAppliance_SSL_CA (.pem format) and installed on client machines from Microsoft Management Console (MMC) that is, from the root of trust Certification Authorities > Certificates. Perform the import file * .pem

And it also included a specific private key for the uniquely identified static IP address that specifies the Descriptive Name to be SSIS master service

It is very clear that they are not using any proxy servers.

So my question is what is the purpose of doing this? And are our passwords decrypted on encrypted websites or store records?
Is there any way to avoid this?

nmap – Port Scan: Ask about the following steps after scanning Zenmap ports

I am very new in offensive security

I have done an nmap scan on a public IP, it shows 4 open ports and the operating system is undetectable, I have no idea how to continue, I appreciate the next steps in this case. Below is a snippet of the nmap output:

Not shown: 995 closed ports
PORT     STATE    SERVICE      VERSION
25/tcp   filtered smtp
135/tcp  filtered msrpc
139/tcp  filtered netbios-ssn
445/tcp  filtered microsoft-ds
6009/tcp filtered X11:9

Warning: OSScan results may be unreliable because we could not find at least 1 open and 1 closed port
Aggressive OS guesses: ISS Proventia GX3002 firewall (Linux 2.4.18) (97%), Linux 2.6.22 (Debian 4.0) (97%), CMI Genus NEMA terminal (95%), D-Link DGS-1210 switch (95%), D-Link DI-604 wireless broadband router (95%), Efficient Networks SpeedStream 4100 ADSL router (95%), FreeBSD 6.1-RELEASE (95%), IBM i 6.1 (95%), Cobalt Qube 2700WG (Linux 2.0.34) (95%), Linux 2.4.20 (95%)
No exact OS matches for host (test conditions non-ideal).

How can I enable web application scanning in OpenVas?

I tried to evaluate the NVT with OpenVas and I can definitely say they are great. Now, I have seen an option that shows "Enable generic web application scanning." But I didn't find an option to enable it.

Any help with this?

network scanners: the router restarts when scanning ports

This question is very much related to router reboots when using Nmap, the difference is that I am really interested in a practical solution to this problem.

I have a C code that is doing port scans with unprocessed sockets. The port I am interested in is rarely open, therefore I would like to increase my scanning speed. But as soon as I increase the speed, my router starts rebooting.

Now, the response to the related thread linked above says

You are probably running out of router resources, mainly NAT
table.

So, first I tried to get some indicators (for the router it will fail soon) of the C code itself. So I checked the return values ​​of sendto Y errno and so on, but it simply does not indicate that something is wrong. Is there any way to get any C code indicator that tells me that I should slow down to prevent the router from restarting?

The other thing I've tried to do is port forwarding, but it doesn't work, the router is still rebooting. I must admit that I am not so expert in routers and NAT tables, but I was thinking that there is no mapping involved for each new outgoing connection if the source port is forwarded. Is it wrong to think that port forwarding will help in this case? If so, why?