Persistent connection string errors .NET Core

I am migrating a full framework application to .NET Core. Under the full framework, it used the following connection string with the IBM .NET Connector for DB2:

"Server=localhost:50000;Database=testdb;" 

The code then assigned UserID and Password properties from credentials vault.

Now, under Core, with the IBM .NET Core connector for DB2 specifically v.2.0.0.100 (long-term support, according to IBM), this connection string throws an exception when a connection string builder is created from it:

{System.ArgumentNullException: Value cannot be null.    at System.Threading.Monitor.ReliableEnter(Object obj, Boolean& lockTaken)    at IBM.Data.DB2.Core.DB2ConnPool.ReplaceConnStrPwd(String value, String newvalue, Boolean onlyPwd)    at IBM.Data.DB2.Core.DB2Connection.RemoveConnectionStringPassword(String value, Boolean bMask)    at IBM.Data.DB2.Core.DB2ConnectionStringBuilder..ctor(String connectionString) 

There is no InnerException. I presume that some mandatory parameters of the connection string that I am not aware of have to be populated under Core, whereas under full framework they were optional. A careful read of IBM documents on DB2 connector Core yielded no mentions of connection string changes, unless I missed them. This blog post mentioned no such breaking changes.

Is anyone aware of mandatory connection string parameters that are missing from my connection string specifically for .NET Core connector?

Contact Form Submitter – Getting Errors

I am using only one deCaptcha service (Death by Captcha) and when I use my site’s contact page as a test, the result is “Failed general/unknown”. I updated the files in Platforms as suggested here (http://scrapeboxfaq.com/contact-form-poster-says-failed) and still nothing.

My site’s current contact page only has “I’m not a robot” captcha.

Am I missing any settings? What am I doing wrong? I tried a few other websites with the same result.

Uncaught Error: Class ‘Redis’ errors on a site I’ve transfered to new hosting

I’ve been given a site that I need to install on my server. The site was made by someone else and it seems to have redis installed.

I get errors such as (paths altered/truncated in the error msg for privacy reasons):

Fatal error: Uncaught Error: Class ‘Redis’ not found in wp-content\object-cache.php:732 Stack trace: #0 wp-content\object-cache.php(171): WP_Object_Cache->__construct() #1 wp-includes\load.php(638): wp_cache_init() #2 wp-settings.php(131): wp_start_object_cache() #3 wp-config.php(94): require_once(‘\path\…’) #4 wp-load.php(37): require_once(‘\path\gree…’) #5 wp-blog-header.php(13): require_once(‘\path\…’) #6 index.php(17): require(‘\path\…’) #7 {main} thrown in wp-content\object-cache.php on line 732

What’s really odd is that they didn’t give me the WP codebase, just the wp-content folders with theme, plugins, uploads.

So the entire wp codebase, wp-config etc are all defaults that I’ve just obtained from the current latest version at WordPress.org.

So if the wp-config is as default, how can some redis like system be coming into play? I’ve never had this issue before and transferred 101 pre-build WP sites between servers.

Can anyone assist ?

SSL not working fine, Home url not matching with site url wordpress errors

I deployed WordPress through Bitnami so after adding an SSL certification I started getting warnings from my WordPress dashboard of my site URL not matching with Home URL I was directed to my WordPress settings To reset back to https://www.healthviewonfraweb.xyz instead of http but I saw that I could not do that on the my settings, I had to login my Myphpadmin to do it there but WP-OPTION still has the correct URL which is https://www.healthviewonfraweb.xyz but still not reflecting on my WordPress

My problem now is why is the URL on my WordPress General settings is http://www.healthviewonfraweb.xyz/ instead of https://www.healthviewonfraweb.xyz and still cannot be changed from there or why is the site URL on my wp-option not same with the one on my WordPress General settings.

Thank you

Reflective DLL Injection using mingw compiles with no Errors, But doesn’t work

I’ve been playing around with the Reflective DLL injection code, I can compile the Dll’s in mingw easily and inject them using the original compiled binaries given here. I can also compile the Injector with no Errors, But the injector doesn’t work and gives me this on Each time, on every Process, As Administrator, And using precompiled injection dlls.

[-] Failed to inject the DLL. Error=998 

Due to this I’ve tried switching my compilers (because I thought it may be it’s problem) from Mingw-64 to Mingw to TDM GCC (this one is easy to use, So I’ll keep this one). But it doesn’t work on either of them. I’m not an Msvc guy, I also don’t like Visual Studio. 🙂

Here’s how I’m compiling the injector.

gcc GetProcAddressR.c Inject.c LoadLibraryR.c 

The original code by Stephen fewer does not support mingw. But it’s fork the one that’s used in Meterpreter does. It can be found here, And this is what I’m using. https://github.com/rapid7/ReflectiveDLLInjection

EDIT : I’m on Windows 10 x64. But I also tried on Windows 7 32 bit. Same Error.

Why am i getting “missing right parenthesis” error when i try to LOG ERRORS when loading from an external table?

I’ve successfully created an error logging table

BEGIN     DBMS_ERRLOG.create_error_log(     dml_table_name  => 'enzyme',     skip_unsupported => TRUE); END; /  desc ERR$  _ENZYME; 
Name            Null? Type            --------------- ----- --------------  ORA_ERR_NUMBER$         NUMBER          ORA_ERR_MESG$           VARCHAR2(2000)  ORA_ERR_ROWID$          UROWID          ORA_ERR_OPTYP$          VARCHAR2(2)     ORA_ERR_TAG$            VARCHAR2(2000)  ENZ_NAME              VARCHAR2(4000)  

But i get an error when I try to run this query:

insert /*+ ignore_row_on_dupkey_index ( enzyme ( enz_name ) ) */ into enzyme SELECT enz_name FROM EXTERNAL ((   construct_id NUMBER(10),   n_term VARCHAR2 (50),   enz_name VARCHAR2 (3),   c_term VARCHAR2 (50),   cpp VARCHAR2 (50),   mutations VARCHAR2 (50),   mw_kda NUMBER (7, 3))      TYPE ORACLE_LOADER     DEFAULT DIRECTORY data_to_input     ACCESS PARAMETERS (         RECORDS DELIMITED BY NEWLINE         skip 1         FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"'         MISSING FIELD VALUES ARE NULL          )      LOCATION ('CONSTRUCT.CSV')     LOG ERRORS INTO ERR$  _ENZYME ('INSERT') REJECT LIMIT UNLIMITED) ext     where not exists (         select * from enzyme e         where e.enz_name = ext.enz_name     ); 
Error at Command Line : 79 Column : 5 Error report - SQL Error: ORA-00907: missing right parenthesis 00907. 00000 -  "missing right parenthesis" *Cause:     *Action: 

Line 79 is the LOG ERRORS INTO line.

If i delete the LOG ERRORS INTO ERR$ _ENZYME ('INSERT') part, this command functions perfectly.

Unity 2018.4.25f1 Errors – error CS0118 & error CS0234

I am getting 2 errors in my c# script.

  1. Assets\scripts\playerMovement.cs(8,5): error CS0118: 'PlayerControls' is a namespace but is used like a type
  2. Assets\scripts\playerMovement.cs(4,19): error CS0234: The type or namespace name 'InputSystem' does not exist in the namespace 'UnityEngine' (are you missing an assembly reference?)

playerMovement.cs:

using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.InputSystem;  public class playerMovement : MonoBehaviour {     PlayerControls controls;     Vector2 move;     void Awake()     {         controls = new PlayerControls();          controls.Gameplay.move.performed += ctx => move = ctx.ReadValue<Vector2>();         controls.Gameplay.move.canceled += ctx => move = Vector2.zero;     }     void Update()     {         Vector2 m = new Vector2(move.x, move.y) * Time.deltaTime;         transform.Translate(m, Space.World);     } } 

I am using the new Input System 0.2.1 in unity 2018.4.25f.

The PlayerControls script is auto-generated from an Actions Input object, and it is in the main root "Assets".

Regularly receiving suspicious certificate errors online

For the past few weeks, I have frequently been receiving error messages from websites stating that the certificate is invalid. This tends to happen for a while and then resolve itself. Other devices on the same network connection are also experiencing odd behaviour, including a very sporadic internet connection that is either very slow or turns on and off. We had an engineer visit this week to diagnose whether there was a faulty connection, but they left, happy that the connection is working properly.

I understand that receiving ‘bad’ certificates can sometimes be a sign of the system clock or internet settings being poorly configured. I had assumed this might be the case, until I interrogated one of these ‘invalid certificate’ messages more closely (from Firefox on Mac):

Web sites prove their identity via certificates. Firefox does not trust this site because it uses a certificate that is not valid for eur03.safelinks.protection.outlook.com. The certificate is only valid for the following names: cloudflare-dns.com, *.cloudflare-dns.com, one.one.one.one, 1.1.1.1, 1.0.0.1, <…>

The website I was trying to visit in this case has nothing to do with cloudflare, and the links above lead to a website that appears to be selling a VPN-type service.

Should I be concerned that my internet connection has been tapped, and what would be the appropriate action to take to shake this off?