networking – How do I find where the DHCP client attempted to request it’s previously used IP address but failed?

How do I find where the DHCP client attempted to request it’s previously used IP address but failed?

image of some of my packets

My guess is that it’s packet number 3 because it has the DHCP request thing on it. Is that right or wrong? If wrong, what should I look out for. How can I tell?

Thank you

Update Checkout Shipping Address with beforeSaveAddressInformation Plugin

I am pretty new to Magento but I am in the process of building out a plugin that will eventually validate a user’s shipping address and then update the user’s shipping address on the payment screen.

My plugin seems to be firing fine as I can write to the log and see the updated address in the quote_address table but the address is not updated on the payment screen. Can someone point out what I am missing here?

Old address on Payment Screen:

enter image description here

Plugin Code:


public function beforeSaveAddressInformation(
    MagentoCheckoutModelShippingInformationManagement $subject,
    $cartId,
    MagentoCheckoutApiDataShippingInformationInterface $addressInformation
)
{
    $addressInformation->getShippingAddress()->setStreet("123 Updated Rd");
    $addressInformation->getBillingAddress()->setStreet("123 Updated Rd");

    $this->_logger->debug(json_encode((array)$addressInformation->getBillingAddress()));
    $return = ($cartId, $addressInformation);

    return $return;
}

geolocation – Does information related to client IP address is been allowed as per GDPR policies. Without asking user’s location

We need implement user’s nearby store locator. Where we have code to get user’s ISP location from where the client request is been triggered.

But getting lat-long & city details by checking client browser IP address. Even if user don’t allow website to share user’s current location.

Does above doing violates any of GDPR policy?

Please share your views.

Thanks.

address – Can a single wallet generate (and use) both SegWit and non-SegWit addresses?

Is a Segwit wallet able to generate and use non-Segwit addresses?

I’m using Bitpay’s Bitcore to create wallets and generate new addresses for the users of my platform. I’m also using Bitcore-wallet-client to sign transactions.

My users have legacy wallets right now. I intend to migrate their wallets to native Segwit, but they will also need legacy addresses so that they can receive coins from anywhere. (right?)

Is it possible to have only one wallet per user, generating both types of addresses, or will I have to manage two wallets per user?

And if I have to manage two wallets per user, utxos from one wallet won’t be available to the other, obviously. What’s the best way to deal with their ‘split balance’? Should I orient users to send all their coins to the bc1 address of the new Segwit wallet? But then, whenever they receive funds in their legacy addresses, they’d have to transfer again to the bc1 address in order to make Segwit transactions. It makes no sense – or does it? What am I missing?

8 – Billing address missing for recurring orders

I’m using Datatrans module as payment gateway. Module does not fully support recurring payment, so I had to add some missing functionality. I added method createPayment:

  public function createPayment(PaymentInterface $payment, $capture = TRUE) {

    // Allowing only new payments
    $this->assertPaymentState($payment, ('new'));

    $payment_method = $payment->getPaymentMethod();
    $amount = strval(floor(floatval($payment->getAmount()->getNumber())*100));


    // Calling Datatrans API and handling response
    $transaction_data = (
      'apiUrl' => $this->configuration('r_api_url'),
      'errorEmail' => $this->configuration('r_error_email'),
      'successEmail' => $this->configuration('r_success_email'),
      'transactionRefNo' => $payment->getOrderId(),
      'merchantAccountId' => $this->configuration('r_merchant_id'),
      'merchantAccountPassword' => $this->configuration('r_merchant_password'),
      'sign' => $this->configuration('r_sign'),
      'req_type' => $this->configuration('req_type'),
      'expm' => $payment_method->expm->getValue()(0)('value'),
      'expy' => $payment_method->expy->getValue()(0)('value'),
      'amount' => $amount,
      'currencyCode' => $payment->getAmount()->getCurrencyCode(),
      'aliasCC' => $payment_method->getRemoteId(),
    );

    $transaction = DatatransHelper::makeTransaction($transaction_data);

    // Saving payment locally

    $next_state = $capture ? 'completed' : 'authorization';
    $payment->setState($next_state);
    $payment->setRemoteId($transaction("uppTransactionId"));
    $payment->setExpiresTime(strtotime('+5 days'));
    $payment->save();

  }

And it works, but problem I have is that all recurring orders created by recurring module do not have billing addresses.

Looked at database and condition for an order to have billing address (table “commerce_order”) it must have id of user profile set in fields “billing_profile__target_id” and “billing_profile__target_revision_id”. If I put some billing profile ids there directly, by editing database billing profile for that order appear and everything works as expected.

What (and where) should I add to my code to set that billing address?

Inside RecurringOrderManager() , refreshOrder() method I saw row like:

 $billing_profile = $payment_method ? $payment_method->getBillingProfile() : NULL;

and that getBillingProfile() may be the method I’m missing (I do have null instead of billing profile id in database), but what confuses me is that it’s defined in PaymentMethodInterface and Datatrans module is not implementing it at all?!

Is it up to Datatrans module to do something in order to set billing profile? How can I do that? I’m not very familiar with this and any hint is welcome.

Networking problem. Cannot access public IP of the server from local address

I have a ubuntu server 19.10 in my local network. The server has 2 network interfaces as my netplan shows:

network:
  version: 2
  renderer: NetworkManager
  ethernets:
    ens160:
      dhcp4: no
      addresses: (192.168.1.254/24)
      nameservers:
        addresses: (192.168.1.1)
    ens192:
      dhcp4: no
      addresses: (85.111.101.244/29)
      gateway4: 85.111.101.241
      nameservers:
        addresses: (62.179.1.62, 62.179.1.63)

The routing table:

Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         85.111.101.241  0.0.0.0         UG    101    0        0 ens192
85.111.101.240  0.0.0.0         255.255.255.248 U     101    0        0 ens192
169.254.0.0     0.0.0.0         255.255.0.0     U     1000   0        0 ens160
192.168.1.0     0.0.0.0         255.255.255.0   U     100    0        0 ens160

The firewall is down. I can telnet to public IP (ens192) from outside the local network on any port. I can telnet to local IP (ens160) from inside the network on any port. But when I try to telnet to the public IP from local network strange thing happens: Telnet clears the window as it is connected, but no trafiic goes through.
The steps I made:

  • nc -l 2399 on the server
  • telnet 85.111.101.244 on the client inside the network
  • tried to put some data in, but no effect on the listener

(same thing works from outside the lan or using the local lan address from inside the lan)

10:03:01.978914 IP (tos 0x0, ttl 126, id 4464, offset 0, flags (DF), proto TCP (6), length 52)
85-111-101-242.dynamic.chello.pl.59224 > 85-111-101-244.dynamic.chello.pl.2399: Flags (S), cksum 0xc03d (correct), seq 2207957483, win 64240, options (mss 1460,nop,wscale 8,nop,nop,sackOK), length 0 

10:03:01.978970 IP (tos 0x0, ttl 64, id 0, offset 0, flags (DF), proto TCP (6), length 44)
85-111-101-244.dynamic.chello.pl.2399 > 85-111-101-242.dynamic.chello.pl.59224: Flags (S.), cksum 0x7dc2 (incorrect -> 0xedee), seq 346416814, ack 2207957484, win 64240, options (mss 1460), length 0

Any ideas why that might happen?

App Windows – LizardSystems Change MAC Address 3.11.0 Build 167 Multilingual Portable | NulledTeam UnderGround

LizardSystems Change MAC Address 3.11.0 Build 167 Multilingual Portable | 4 Mb
Every network adapter has a unique MAC address embedded by the manufacturer in the firmware of the network adapter chip. Sometimes you may need to find out or change the MAC address of the network adapter, for example, if it is used for Internet access authentication. Or if you need to hide your MAC address for security reasons.

You can spoof the MAC address very easily with our program. All you have to do is click a few buttons. During this operation, you can select a different manufacturer or generate a completely random MAC address.
Key features:
– Showing the MAC address of your network adapter
– Showing the manufacturer of you network adapter
– Replacing the MAC address with any other address
– Generating a completely random MAC address
– Setting a MAC address of another manufacturer
– Setting a MAC address without changing the manufacturer
– Automatically activating the new MAC address after the change
– And all that in just a couple of mouse clicks!
Operating System: Windows 7, 2008R2, 8, 8.1, 2012, 2012R2, 10, 2016
Home Page –

Recommend Download Link Hight Speed | Please Say Thanks Keep Topic Live

 

magento2 – Can’t save custom address attribute

I’ve created a new customer address attribute called ‘landline’ (required). I’ve used the code generated by https://mage2gen.com/ which seems ‘correct’ to me:

  • Attribute is correctly created and displayed
  • I can save the attribute from the backoffice

However, if I try to create a new address programmatically and set a value for this new attribute, I get the following error:

"Landline" is a required value.

If I create the attribute but it’s not required, then the address is generated, but the landline field is empty.

This is the code I use for address generation:

$address = $this->customerAddressFactory->create();

$address->setCustomerId($customerId)
                ->setFirstname($addressData('firstname'))
                ->setLastname($addressData('lastname'))
                ->setCountryId($addressData('country_id'))
                ->setRegionId($addressData('region_id'))
                ->setPostcode($addressData('postcode'))
                ->setCity($addressData('city'))
                ->setTelephone($addressData('fax'))
                ->setData('landline', $addressData('telephone'))
                ->setStreet($addressData('street_array'));

$this->customerAddressRepository->save($address);

As you can see, I’m using ‘setData’ for landline attribute. If I use: setLandline, the following error is thrown:

Call to undefined method MagentoCustomerModelDataAddress::setLandline()

How can I save this attribute programmatically? What am I doing wrong? I’m using Magento 2.4.1

Will the Bitcoin network discredit a transaction if you do a simple transfer on a multi-sig after you found the collision on that address?

Stack Exchange Network


Stack Exchange network consists of 176 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

url – How to hide website’s real address

You can’t get there with forwarding, as forwarding will, by definition eventually take customers directly to the final location. What you need is reverse proxying.

A reverse proxy works by going to a an address, and having that address proxy the request to a different address at the final site. This does, of-course, mean a double-up of bandwidth use – Once from the client to the proxy, and once from the proxy to the actual server. The flipside of this is you can swap out the proxy for a CDN and have a distributed frontend.

You can build a reverse proxy yourself (lots of ways to do it, Apache has a module to do it, and I believe Nginx and Squid do as well. Its also practical to roll your own if you limit the scope). That said, for the general case most entities use services like Cloudflare or Cloudfront. This has an added advantage of adding DoS protection and other management tools.

Word of caution – if you are planning on distributing content of questionable legality – asking the question you did exposes a lack of knowledge required to avoid getting caught – so don’t do it. While this will be strong protection against end users, it will not by itself prevent agencies backed by government from tracking back to the final site, as there is a lot of infrastructure required of ISPs to help governments/spy agencies – and this is likely to expose the ultimate location if a government deems it worthwhile.