Magento 2 Intercept Route

I got a small question. I have custom products/categories in my shop. Now depending on the user, it may or may not visit the specific category or product. Is there an event or other way to ‘hook’ into, or ‘intercept’ a route and execute some logic?

For example: i have customer x and customer y, product x and category x customer y does not have access to category x, i want to redirect the customer to the homepage when the customer visits category-x.

Thanks in advance,

Is it possible to intercept messages from email address or phone number that is expired? if yes, how?

I used to have an email account for receiving important messages but it was deleted by the email provider in which they claimed that deletion of the email address is still in progess but cannot be reversed. I desperately need that email address to receive important messages bascially i wonder if its still possible to intercept messages that were sent to the email address If yes, how? Also does this work on phone number as well? is it possible to intercept SMS that is sent to phone numbers in which {the phone number) is no longer in service?

In other words—if someone send a message to that email address/phone number, is it possible to intercept that message before it reached the email address/phone number? If yes, how?

Intercept Onepage\SaveOrder

I’m trying to add a certain process in the Magento\Checkout\Controller\Onepage\SaveOrder so I decided to implement a plugin for that. But after creating the di.xml and the classes needed when I try to purchase an item and fillout all the shipping details and selected the needed payment method. Upon submission of the order I was expecting for the function to be run. But somehow it’s not being called. Can any help me with this or if anyone has any idea what I did wrong. Below are my codes

content of di.xml

<?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../lib/internal/Magento/Framework/ObjectManager/etc/config.xsd">    <type name="Magento\Checkout\Controller\Onepage\SaveOrder">         <plugin name="Custom_Module_Plugin" type="Custom\Module\Plugin\SaveOrderPlugin" sortOrder="10" />     </type> </config> 

content of SaveOrderPlugin.php

<?php  namespace Custom\Module\Plugin;  class SaveOrderPlugin {        public function aroundExecute(\Magento\Checkout\Controller\Onepage\SaveOrder $  subject, \Closure $  proceed)     {         // logging to test override             $  logger = \Magento\Framework\App\ObjectManager::getInstance()->get('\Psr\Log\LoggerInterface');         $  logger->debug("********** " . __METHOD__ . ' - ' . __LINE__);          // call the core observed function         $  returnValue = $  proceed();           // logging to test override                 $  logger->debug("********** " . __METHOD__ . ' - ' . __LINE__);          return $  returnValue;     } } ?> 

As you can see I was expecting an output in the console log as shown below but this does not show. Also I tried intercepting other classes like Magento\Quote\Model\QuoteManagement and it worked as expected. But the reason I want to override the Magento\Checkout\Controller\Onepage\SaveOrder is primarily because I want to retrieve a certain parameter when the order of item is submitted.

Anyone have an idea what I did wrong here?

Unable to intercept android app traffic neither in Burp Suite nor in Network Profiler. Can anyone help?

I need to perform MITM attack on an app which doesn’t use HttpURLConnection and OkHttp libraries for network connection.

Analysis : 1. Configured burp on the devices, able to capture request of chrome browser but not the test app. 2. Wireshark is showing, communication of test app is happening on TLS 1.2 only. 3. Tried Network profiler of android studio but nothing shown.

What we should do if network connection is done with ‘CURL’ which I am not very familier with?

Hyperbolic Intercept (Thales) Theorem

Is there an Intercept theorem (from Thales, but don’t mistake it with the Thales theorem in a circle) in hyperbolic geometry?

Euclidean Intercept Theorem: Let S,A,B,C,D be 5 points, such that SA, SC, AC are respectively parallel to SB, SD, BD; and SB > SA, SD > SC. Then, we have SB/SA = SD/SC = BD/AD

(see wiki illustration)

Hyperbolic Intercept Theorem? The concept of parallel lines is tricky here… Let’s place ourselves in the Klein model, consider a triangle $ 0xy$ , two positive real numbers $ p,q$ , and construct the Einstein midpoints $ x’=m(x,0;p,q)$ and $ y’=m(y,0;p,q)$ , defined by $ $ m(a,b;p,q)=\dfrac{p\gamma_a a+q\gamma_b b}{p\gamma_a +q\gamma_b},$ $ with $ \gamma_x=1/\sqrt{1-||x||^2}$ the Lorentz factor. The analogue of “parallel lines” here resides in that we use the same $ (p,q)$ for $ x$ and $ y$ . Then, I can prove that $ $ \dfrac{\sinh d(x’,0)}{\sinh d(x,x’)}= \dfrac{\sinh d(y’,0)}{\sinh d(y,y’)},$ $ and I can also prove using hyperbolic sine law hat \begin{equation} \sinh d(x’,y’) \leq\min \left(\dfrac{\sinh d(x’,0)}{\sinh d(x,0)}\dfrac{\sin \alpha}{\sin \alpha’},\dfrac{\sinh d(y’,0)}{\sinh d(y,0)}\dfrac{\sin \beta}{\sin \beta’} \right)\sinh d(x,y). \end{equation} and I want to prove that either $ \dfrac{\sin \alpha}{\sin \alpha’} \leq 1$ or $ \dfrac{\sin \beta}{\sin \beta’}\leq 1$ . Here $ \alpha,\beta$ are the angles at $ x$ and $ y$ in $ Oxy$ , and $ \alpha’,\beta’$ at $ x’$ and $ y’$ in $ Ox’y’$ .

Exploiting negative curvature, I could already prove that $ \alpha+\beta < \alpha’+\beta’$ , but that’s not enough…

I would also be happy with a proof that Einstein midpoint operations are contracting (in $ \sinh$ of distance), when we use the same weights $ (p,q)$ .

How to intercept packets of system apps in Android?

I am unable to capture packets of native android email app in burp suite but able to capture packets of chrome browser.

I have configured the proxy of my machine with burp port(8080) on the test device. I am not getting “how burp proxy is bypassed by email app and at the same time, I am able to capture packets of chrome browser”

Android 8.1 (AOSP) is installed on the device, I have placed burp certificate in system credentials.

Is it possible for apps to communicate to server directly bypassing the proxy in case of certificates pinning?