If I am trying to clean install a MacOS with internet recovery, is it safer to use mobile network than WIFI network?

I just clean installed my MacOS Catalina on my MacBook due to virus on my PC that I worried got on my MacBook via usb file transfer.

I did an internet recovery to reinstall MacOS Catalina with my home WiFi network, with password protected. However, since my Pc was had a virus, I was worried that my IP addresss and home WiFi network has been compromised, can I still trust that the installation was not tempered with? Or should I perhaps reinstall it again using mobile network? Since I have heard that mobile data are much more secure than WiFi network.

Go to Source
Author: Ecotistician

I was installing Arch Linux but I messed up, I wanted to restart so I rebooted and booted back into my bootable USB. I am now in the interactive shell

Like I mentioned in the title I was at point where I was about to install grub but I found out I had messed up so I restarted and booted back into my USB, I am now stuck in the interactive shell. I am going to try to reboot and boot into manjaro using anothet USB unless someone says I shouldn’t.

Here’s a picture of my situation http://imgur.com/gallery/0kCyyxr

Go to Source
Author: probablyasmurf

What does CBL mean? How to spot infection by making outbound TCP connections to 110?

I have an IP blocked by Spamhaus CBL, and it tells me the following instruction:

This IP address was detected and listed 2 times in the past 28 days,
and 2 times in the past 24 hours. The most recent detection was at Mon
May 25 02:25:00 2020 UTC +/- 5 minutes

This IP address is attempting to break into POP servers, probably with
stolen credentials, with the intent of stealing email. These are
usually part of targetted phishing attacks.

POP server attacks are usually on port 110 or port 995. This listing
event was for an attack on port 110. You should be able to spot the
infection by making outbound TCP connections to 110 via such tools as
iptables, netstat or ss.

As a reasonably intelligent dumb windows user, how can I test this to see if I do actually have any kind of infection? I know how to use telnet.exe but I have never even heard of iptables, netstat or ss – they sound like linux geek tools to me.

Go to Source
Author: mike nelson

Ubunutu 20.04 Gnome shell crashing on enabling Extensons from Gnome Tweak Tool

I recently upgraded from Ubuntu 18.04 to 20.04
Everything is working fine except the Extensions

I tried enabling them using Gnome Tweaks Tool

Tweak tools -> Extensions Sidebar -> Top right corner
Gnome Tweaks Tools

But as soon as I toggle that, the shell crashes and I see this screen.
Shell Crashes

I am forced to logout and then login again. And then extensions are disabled again.

I tried enabing them even through dconf editior but the same thing happens. The shell crashes immidiately.

I tried looking for solutions but it seems like the issue is experienced by extremely few people. I could only find one question for it on Reddit(no solutions on it yet).

Does anyone know what the issue is about and if there is a fix for it? I am not able to use extensions and this is really bothering me. I am ready to provide any further details necessary to fix this issue

Go to Source
Author: Abhishek Jain

Get tagging to work on AWS CLI

I am trying to tag commit hash and app version onto the ECS service to make it easier for developers to identify the service with the code.

But I get this error

+ aws ecs tag-resource --resource-arn arn:aws:ecs:ap-southeast-1:12344556677:service/master-web-dev-WebECSServices --tags key=COMMITHASH,value=85491def key=VERSION,value=0.2.4
An error occurred (InvalidParameterException) when calling the TagResource operation: Long arn format must be used for tagging operations

Is there any problem with the ARN? why do I always get this issue?

Go to Source
Author: Moses Liao GZ

What is the correct way to call a PHP Function with multiple parameters from the AJAX Handler?

Q: What is the correct way to call a PHP Function with multiple parameters from the AJAX Handler?

Q: Am I calling the php function correctly?

Page Element
The user clicks a button.

The click should connect to an external server using the following params:

  1. User Name 2. IP Address 3. Port 4. Public Key 5. Service

Send an vote string (from host A) to an external Gaming server (host B).
I do not need to update any wordpress content.

WordPress Version: 5.4.1
I put my custom php code into “/wp-contents/plugins/my-plugin/votifier.php”

I made sure the custom plugin is activated.

I have WordPress in Debug mode. i.e. Debug mode is true.

The Button

<div id="frm_field_61_container">
<button type="button">Try it</button>

WordPress JQuery with AJAX

jQuery(document).ready( function($) {


         type : "post",

         dataType : "json",

         url : myAjax.ajaxurl,

         data : {    action: "my_vote_count"
                    ,username: $('input[name="item_meta[59]"]').val()
                    ,key: $.trim($("#field_yjr62").val())
                    ,ip: $('input[name="item_meta[40]"]').val()
                    ,port: $('input[name="item_meta[42]"]').val()
                    ,service: "Votifier"

        success:    function(data,status,xhr){
                    alert("Data: " + data);
                    alert("Status: " + status);
                    alert("xhr: " + xhr);

My Custom PHP Script


function mainVotifier($username, $public_key, $server_ip, $port, $service_name) {

define( 'VOTE_FORMAT', 'VOTEn%sn%sn%sn%dn' );
define( 'PUBLIC_KEY_FORMAT', '-----BEGIN PUBLIC KEY-----n%sn-----END PUBLIC KEY-----' );

$key    = wordwrap($public_key, 65, "n", true);
$key    = sprintf(PUBLIC_KEY_FORMAT, $key);

  if (php_sapi_name() !== 'cli') {
            //Detect proxy and use correct IP.
            $address = isset($_SERVER['HTTP_X_FORWARDED_FOR']) ? $_SERVER['HTTP_X_FORWARDED_FOR'] : $_SERVER['REMOTE_ADDR'];
        } else {
            //Script is run via CLI, use server name.
            $address = $_SERVER['SERVER_NAME'];

    $data = sprintf(VOTE_FORMAT, $service_name, $username, $address, time());
    openssl_public_encrypt($data, $crypted, $key);
    $socket = @fsockopen($server_ip, $port);

    if ($socket) {
        if (fwrite($socket, $crypted)) {
            return true;



/* ===== WP_ENQUEUE SCRIPTS ==== */

/* ===== JQuery Ajax Script to call votifier.php ==== */
add_action( 'wp_enqueue_scripts', 'my_script_enqueuer' );
function my_script_enqueuer() {

   wp_enqueue_script( 'my_voter_script',  plugins_url('sendvote.js', __FILE__), array( 'jquery'),   '1.0', true);

   wp_localize_script( 'my_voter_script', 'myAjax', array( 'ajaxurl' => admin_url( 'admin-ajax.php' )));


/* ===== My AJAX Handler ==== */

/* add_action( 'wp_ajax_nopriv_my_vote_count', 'my_ajax_handler' ); */ 
add_action( 'wp_ajax_my_vote_count', 'my_ajax_handler');
function my_ajax_handler() {

/*  check_ajax_referer('votifier_response_key'); */

    $username       = $_POST["username"];
    $public_key     = $_POST['key'];
    $server_ip      = $_POST["ip"];
    $port           = $_POST["port"];   
    $service_name   = $_POST["service"];

   echo "mainVotifier("" . $username . "", "" . $public_key . "", "" . $server_ip . "", "" . $port . "", "" . $service_name . "");";

    wp_die(); // All ajax handlers die when finished


Console Results

The console results are good, but the other server is not responding.
I tested the PHP code locally from my personal computer and Server B is responding.

Request URL:https://bestminecraftserverlist.com/wp-admin/admin-ajax.php
Request Method:POST
Remote Address:
Status Code:

Go to Source
Author: ScottUSA

How to query/join tables where foreign key constraint is set in schema

I’m relatively new to sqlite and databases in general.
I’ve successfully setup a schema of 4 tables, each having a foreign key pointing to its parent table. The schema also has the foreign key constraint set on the child keys.

Performing a query where every table is joined with the SELECT * FROM…JOIN…ON ……… works without issue, but it is laborious manually connecting the keys.

My question is: Is it possible to perform a query/join of the tables without the ON statement which links each parent/child key relationship? Since this was already established in the schema definition, this seems to be redundant. I’m trying to simplify the sql command and make use of the parent/child relationship already defined. When I perform said query but omit the ON statements, the results are not what I expected. Any guidance is appreciated.

Go to Source
Author: Bill Fujimoto

Architecture of Online Chess (2-player web-based board game)?

I’d like to try to create an application where 2 players can play chess online. The (possibly) novel feature would be that the process for joining a game would be similar to how Typeracer works. The first player creates a lobby then shares a link. The friend can then click the link to join the session immediately.

However, I’m a beginner when it comes to how information is shared over the internet. I’ve only created a few REST APIs and games in Java/Python so a lot of this would be new to me.

The first question I have is how/where would I actually implement the logic for this game? Would everything be done client-side (I’d probably use React so I’d then have a js library to hold all game rules) Or is everything done on the server?

Also, how would I keep the player’s game clients in sync? I’ve heard about websockets but any elaboration would be helpful.

Lastly, how could I go about implementing the feature where users can share their game link to get the other player to join?

For context, I have quite a bit of experience with React for UI, I’ve used NodeJS on the server, and I’m currently learning about how to create web APIs with ASP.NET web API (C#). I figure that I’ll be able to create the board UI in React and handle any animations with CSS. If that’s not a good idea let me know!

Overall I’m not really sure how I’ll tie this all together so a big picture view might help; and I’ve love to hear about any frameworks or tools that might make this job easier; thanks for the help in advance!

Go to Source
Author: Brad Stevanus

i am getting an error of ‘turtle’ has no attribute ‘Turtle’

The mistakes done in the turtle library

1 : saving the file as “turtle.py”

2 : using the lower case for library as turtle.turtle()….the correct form is turtle.Turtle()

3 : if you have done the first mistake of saving the file as “turtle.py” don’t rename the file in the same folder …try a new place to save the file.

Go to Source
Author: Suchit Borge

How to add PPA source for this gcc-10 package?

I know that to add a PPA, we use:

add-apt-repository ppa:user/ppa-name

But for this package : gcc-10, what is user and ppa-name?

I have tried:

add-apt-repository ppa:ubuntu/gcc-10
add-apt-repository ppa:gcc-10
add-apt-repository ppa:focal/gcc-10

They all fails with:

user or team does not exist.

Go to Source
Author: kilasuelika

Why do I have a directory called .ecryptfs full of files when I do not have my file system encrypted?

(Revisiting the eCryptfs headers errors post from 2015)

In my /var/log/syslog file, I was seeing the error

Valid eCryptfs headers not found in file header region or xattr region, inode 7080159

I used @GiovanniToraldo’s suggestion

find / -inum 7080159

and found the errant file in the /home/.ecryptfs/<user>/.Private/... directory. The file size was 8192 and the file date was July 10, 2019 (last year.) So I deleted the file.

Why do I have a directory for .ecryptfs when I do not have my file system encrypted? Can I just delete the entire .ecryptfs directory?

Note: I am running Ubuntu 14.04 LTS on a desktop computer with a RS880 [Radeon HD 4250] video card that is no longer supported by the Linux kernel beyond 14.04 LTS, so I cannot upgrade Ubuntu without buying a new computer.

Go to Source
Author: Stephen Daddona

Can you edit /etc/passwd on a firmware image?

I’m trying to gain root access on a cheap DVR that I bought for a CCTV system. The manufacturer has a firmware update image available for download that I was able to inspect using a tool called binwalk and I extracted the rootfs. It looks like a flavor of embedded Linux with Busybox.

I took a look at the /etc/passwd file and it has one line for root with a password hash and a login shell defined. There’s no /etc/shadow file but there is a /etc/passwd- which I haven’t seen before.

I also found an init script that would normally be launching telnetd but it’s commented out.

Can I just generate a new password hash to substitute in /etc/passwd, uncomment the telnetd line and then log in as root with the new password through telnet over the network?

(Of course this is ignoring the possible problems I could run into with flashing the new firmware onto the device and bricking it)

Go to Source
Author: jvergeldedios

Try to run Python programm from command line. ImportError: No module named mysql.connector

I’m new in programming. So I have a question about this error.
I’m trying to run programm from command line in PyCharm, and get this Error.

root@kali:~# python /root/PycharmProjects/lesson/ProL3/ner.py
Traceback (most recent call last):
File “/root/PycharmProjects/lesson/ProL3/ner.py”, line 2, in
import mysql.connector as sql
ImportError: No module named mysql.connector


import mysql.connector as sql
from mysql.connector import Error
import argparse

connection = sql.connect(
mycursor = connection.cursor()

parser = argparse.ArgumentParser(description='Database management', usage='Script option:')
parser.add_argument('-d', '--data', help="Create Databases")
args = parser.parse_args()

class Data:
    def __init__(self, database=''):
        self.database = database

    def create_database(self):
            print("The database was created!")
        except Error as e:

What should I do?

Go to Source
Author: Boboc