NAT-T invalid port number client VPN connection

During recent investigation of the router’s log file, I’ve spotted unusual behavior when one of the clients was trying connect using port 1030 and 1032 instead of 4500 for NAT Traversal.

VPN is set up with IKEv2 keys exchange on port 500 and IPSec NAT-T encapsulation on port 4500.
While this kind of issue never happened before, it seem that this change happened on a client endpoint or somewhere in-transit to client router.
This peer was authorized by VPN router and then killed 30 secs later (probably because it wasn’t able to transmit data over interface – Tx bytes were = 0 while there were some Rx packets).

At this point I’ve recommended to scan every machine in their network to see if they may have some kind of trojan/worm on their computers.
My question is how to prevent this kind of attack.

magento2 – Magento 2 Ajax form key invalid request

I’m trying to send a form from a modal and also an image from that form.

the form_data works fine with only serialize(), but I need to attach the image to data, so I did this:

   click: function (data) {
                    var form_data = new FormData();
                    var form = $("#bss-refund-form").serialize();

                    form_data.append('form', form);
                   
                
                    $.each($('#evidence')(0).files, function(i, file) {
                        form_data.append('evidence', file);
                       });

                    

                    if($('#bss-refund-form').valid()) {

                        $.ajax({
                            showLoader: true,
                            url: url,
                            type: 'POST',
                            data: form_data,
                            processData: false,
                            contentType: false
                        })
                            .done(function () {
                                $("#bss-refund-modal").modal('closeModal');
                                $("#bss-refund-form")(0).reset();
                                location.reload(true);
                                console.log("ok" + form_data);

                            })
                            .fail(function () {
                                $("#bss-refund-modal").modal('closeModal');
                                console.log("bad" + form_data);
                            });
                    }
                }

in the Controller here is the form_key validation.

if (!$this->formKeyValidator->validate($this->getRequest())) {
            $this->messageManager->addErrorMessage("Invalid request!");
            return $resultRedirect->setPath('customer/account/');
        }

java – Adding new SSH key in Github is triggering key is invalid error

I’m working through a LinkedIn Learning exercise called “Eclipse Essential Training” and have arrived to the portion of the training where an SSH key has to be generated in Eclipse and then added to Github. I’ve installed Eclipse and am using my Github account, but keep getting the following error in Github when attempting to add “New SSH key”, which is found under “Personal Settings” > “SSH and GPG Keys”:

Key is invalid. It must begin with ‘ssh-rsa’, ‘ecdsa-sha2-nistp256’, ‘ecdsa-sha2-nistp384’, ‘ecdsa-sha2-nistp521’, ‘ssh-ed25519’. Check that you’re copying the public half of the key.

In the video, the trainer’s key starts with ssh-dss, and so does mine, but the error message indicates it must begin with one of those from the error message above. I checked my Github account thoroughly, thinking that perhaps there’s a setting that’s amiss, but I don’t see where anything is configured incorrectly. Any ideas what I’m missing?

php – mi consulta preparada no se ejecuta me arroja el error “PDOStatement::execute(): SQLSTATE[HY093]: Invalid parameter number: parameter was not defined”

como soluciono el error “PDOStatement::execute(): SQLSTATE(HY093): Invalid parameter number: parameter was not defined”

me lo marca en la parte del modelo en la linea $sql->execute();

al enviar el arreglo le puse cadenas para ver si tenia algun error en las variables pero me siguio marcando el mismo error

En la parte de mi controlador tengo:

<?php
   require_once("./modelo/reactivoModelo.php");
   
   class reactivoControlador extends reactivoModelo{
        public function agregarEntradaReactivoControlador() {
            $nombreReactivo=mainModel::limpiarCadenas($_POST('reactivoEntrada-v'));
            $cantidadEntrada=mainModel::limpiarCadenas($_POST('cantidadEntrada-v'));
            $medida=mainModel::limpiarCadenas($_POST('medida-v'));
            $descripcion=mainModel::limpiarCadenas($_POST('descripcion-v'));
             //le pase cadenas para ver si tenia algun error en la variables de arriva, pero me sigue arrojando el error
            $datosEntrada=(
                    "codigoEntrada"=>"fff",
                    "codigoReactivo"=>"fff",
                    "codigoCuenta"=>"hw",
                    "nombreMedida"=>"ddd",
                    "cantidadEntrada"=>"ddd",
                    "fechaEntrada"=>"34rrr",
                    "descripcion"=>"ddd"
                );
            $guardarEntrada=reactivoModelo::agregarEntradaReactivoModelo($datosEntrada);
            if ($guardarEntrada->rowCount()>=1) {
                echo '<script>alert("datos ingresados");</script>';
            }
            else {
                echo '<script>alert("datos no ingresados");</script>';
            }

   }
?>

y en mi modelo tengo lo siguiente:

<?php
    require_once("../core/mainModel.php");

    class reactivoModelo extends mainModel {
        protected function agregarEntradaReactivoModelo($datos)
        {
            $sql=mainModel::conectar()->prepare("INSERT INTO entrada_reactivo(codigoEntrada,codigoReactivo,cuentaCodigo,nombreMedida,cantidadEntrada,fechaEntrada,descripcion) 
            VALUES(:codigoEntrada,:codigoReactivo,:cuentaCodigo,:nombreMedida,:cantidadEntrada,:fechaEntrada,:descripcion)");
            $sql->bindParam(":codigoEntrada",$datos('codigoEntrada'));
            $sql->bindParam(":codigoReactivo",$datos('codigoReactivo'));
            $sql->bindParam(":cuentaCodigo",$datos('cuentaCodigo'));
            $sql->bindParam(":nombreMedida",$datos('nombreMedida'));
            $sql->bindParam(":cantidadEntrada",$datos('cantidadEntrada'));
            $sql->bindParam(":fechaEntrada",$datos('fechaEntrada'));
            $sql->bindParam(":descripcion ",$datos('descripcion'));
            $sql->execute();
            return $sql;
        }
    }

?>```

theming – Fatal error: “isEven” is an invalid render array key /web/core/lib/Drupal/Core/Render/Element.php

we have this code in template.theme but when we go to view the web, the page show a error as this: “isEven” is an invalid render array key /web/core/lib/Drupal/Core/Render/Element.php . I dont understand very good Drupal and as works it.

function fcjc_bootstrap_preprocess_paragraph(&$variables)
{
  /** @var DrupalparagraphsEntityParagraph $paragraph */
  $paragraph = $variables('paragraph');
  if ($paragraph->getType() === 'image_text_full_width' || $paragraph->getType() === 'imaxe_texto_biografia_') {
    $variables('isEven') = $variables('elements')('isEven');
  }
}


function fcjc_bootstrap_preprocess_field__field_image_text_section(&$vars)
{
  foreach ($vars('items') as $delta => &$item) {
    $classname = ($delta % 2 == 0 ? 'even' : 'odd');
    $item('attributes')->setAttribute('class', $classname);
    $item('content')('isEven') = ($delta % 2 == 0);
    }
}

In paragraph.twig I have this:
<div class=" image col-sm-4 col-xs-12 {% if isEven %}right-shadow{% else %}left-shadow col-sm-push-8{% endif %}">

Can Somebody can help me? please. Thx

sharepoint online – AADSTS7000215: Invalid client secret is provided

We are integrating with client’s SharePoint using SharePoint REST API. For this, the client has registered an add-in at their side using the appregnew.aspx and provided permissions to the Add in using appinv.aspx.

Now when I am trying to get the bearer token for using the tenant id and giving all other parameters in request body, I am getting the following error:

 "error": "invalid_client",
 "error_description": "AADSTS7000215: Invalid client secret is provided.rnTrace ID: 993e6c16 
  -68f3-4105-baf5-b08368de0700rnCorrelation ID: 59a5e402-1583-422b-8b62- 
    03b620eb72c1rnTimestamp: 2020-06-04 06:34:01Z"

The error message says the client secret is invalid but it is the same client secret that we got from the appregnew.aspx. Can someone help me with this error?

I am using postman to hit the URL and using the application/x-www-form-urlencoded for request body.

enter image description here

Fullcalendar Uncaught SyntaxError: Invalid or unexpected token em descrição quando pulo linha

Estou usando como base este calendário
https://github.com/GabrielpBiu/calendario-de-eventos-php-fullcalendar-mysql
Na descrição existe um textarea. Quando pulo linha e salvo no banco, não consegue carregar o calendário por causa do erro
Uncaught SyntaxError: Invalid or unexpected token

inserir a descrição da imagem aqui

No banco está assim:

inserir a descrição da imagem aqui

como faço par acorrigir?

bitcoin core – “Invalid address” when trying solo mine with bfgminer

I am trying to mine solo.

I have installed BitCoin Core on my Windows box, set up incoming connections

enter image description here

and wrote in config file <BitCoinStore>/bitcoin.conf

server=1
rpcuser=myusername
rpcpassword=mypassword

Then on Linux box I ran

bfgminer -o http://mywindowsaddress:8333 -u myusername -p mypassword --generate-to myincomingaddress

and got

[2020-11-13 12:23:23] bfgminer: --generate-to: Invalid address

Why? What is invalid?

Should I run bitcoind instead of thus GUI on Windows?

how to fix the error ” invalid the type error” in the postgresql function .the code is pasted .kindly fix the code

CREATE OR REPLACE FUNCTION msaccess_utilities.choose_ (p_index bigint, p_element_1 text,
 p_element_2 text DEFAULT NULL, p_element_3 text DEFAULT NULL, p_element_4 text DEFAULT NULL,
 p_element_5 text DEFAULT NULL, p_element_6 text DEFAULT NULL, p_element_7 text DEFAULT NULL,
 p_element_8 text DEFAULT NULL, p_element_9 text DEFAULT NULL, p_element_10 text DEFAULT NULL,
 p_element_11 text DEFAULT NULL, p_element_12 text DEFAULT NULL, p_element_13 text DEFAULT NULL,
 p_element_14 text DEFAULT NULL, p_element_15 text DEFAULT NULL, p_element_16 text DEFAULT NULL,
 p_element_17 text DEFAULT NULL, p_element_18 text DEFAULT NULL, p_element_19 text DEFAULT NULL,
 p_element_20 text DEFAULT NULL) RETURNS varchar AS $body$
DECLARE

    TYPE StringCollType IS TABLE OF varchar(4000);
    v_coll StringCollType;

BEGIN
v_coll := new StringCollType();

IF p_element_1 IS NOT NULL THEN
  v_coll.EXTEND(1);
  v_coll(v_coll.LAST) := p_element_1;
END IF;

IF p_element_2 IS NOT NULL THEN
  v_coll.EXTEND(1);
  v_coll(v_coll.LAST) := p_element_2;
END IF;

IF p_element_3 IS NOT NULL THEN
  v_coll.EXTEND(1);
  v_coll(v_coll.LAST) := p_element_3;
END IF;

IF p_element_4 IS NOT NULL THEN
  v_coll.EXTEND(1);
  v_coll(v_coll.LAST) := p_element_4;
END IF;

IF p_element_5 IS NOT NULL THEN
  v_coll.EXTEND(1);
  v_coll(v_coll.LAST) := p_element_5;
END IF;

IF p_element_6 IS NOT NULL THEN
  v_coll.EXTEND(1);
  v_coll(v_coll.LAST) := p_element_6;
END IF;

IF p_element_7 IS NOT NULL THEN
  v_coll.EXTEND(1);
  v_coll(v_coll.LAST) := p_element_7;
END IF;

IF p_element_8 IS NOT NULL THEN
  v_coll.EXTEND(1);
  v_coll(v_coll.LAST) := p_element_8;
END IF;

IF p_element_9 IS NOT NULL THEN
  v_coll.EXTEND(1);
  v_coll(v_coll.LAST) := p_element_9;
END IF;

IF p_element_10 IS NOT NULL THEN
  v_coll.EXTEND(1);
  v_coll(v_coll.LAST) := p_element_10;
END IF;

IF p_element_11 IS NOT NULL THEN
  v_coll.EXTEND(1);
  v_coll(v_coll.LAST) := p_element_11;
END IF;

IF p_element_12 IS NOT NULL THEN
  v_coll.EXTEND(1);
  v_coll(v_coll.LAST) := p_element_12;
END IF;

IF p_element_13 IS NOT NULL THEN
  v_coll.EXTEND(1);
  v_coll(v_coll.LAST) := p_element_13;
END IF;

IF p_element_14 IS NOT NULL THEN
  v_coll.EXTEND(1);
  v_coll(v_coll.LAST) := p_element_14;
END IF;

IF p_element_15 IS NOT NULL THEN
  v_coll.EXTEND(1);
  v_coll(v_coll.LAST) := p_element_15;
END IF;

IF p_element_16 IS NOT NULL THEN
  v_coll.EXTEND(1);
  v_coll(v_coll.LAST) := p_element_16;
END IF;

IF p_element_17 IS NOT NULL THEN
  v_coll.EXTEND(1);
  v_coll(v_coll.LAST) := p_element_17;
END IF;

IF p_element_18 IS NOT NULL THEN
  v_coll.EXTEND(1);
  v_coll(v_coll.LAST) := p_element_18;
END IF;

IF p_element_19 IS NOT NULL THEN
  v_coll.EXTEND(1);
  v_coll(v_coll.LAST) := p_element_19;
END IF;

IF p_element_20 IS NOT NULL THEN
  v_coll.EXTEND(1);
  v_coll(v_coll.LAST) := p_element_20;
END IF;

IF p_index < 1 OR p_index > v_coll.COUNT THEN
  RETURN NULL;
END IF;

RETURN v_coll(ROUND(p_index));
EXCEPTION
    WHEN OTHERS THEN
      RAISE EXCEPTION '%', DBMS_UTILITY.FORMAT_ERROR_STACK USING ERRCODE = '45000';
END;

$body$
LANGUAGE PLPGSQL
 STABLE;