Emotet

joined 2 months ago
[–] [email protected] 1 points 8 hours ago

Indeed it does, I was talking about adding a checkbox tagged "Only transfer blocked users" instead of having to click through some menus.

[–] [email protected] 8 points 12 hours ago (2 children)

Police allege the man’s fake wifi networks took users to a dummy page that asked for their email or social media login details. Those details were then saved to the man’s devices and could be used to access other personal information, including the online communications, photos, videos or bank details.

I was going to make fun of people falling for that, but I can see how a fake portal probably masquerading as SSO verification in order to get free Wi-Fi can temporarily fool even some more experienced users.

[–] [email protected] 1 points 20 hours ago

Sure, the code is completely client-side, simply clone it. If you're running into CORS problems due to the file:// scheme Origin of opening a local file, simply host it as a local temporary server with something like python -m http.server .

This is due to the two ways most instances validate Cross-Origin requests:


  • Sending Access-Control-Allow-Origin: * (allow all hosts)
  • Dynamically putting your Origin into the Origin header of the response to your requests by the backend

file:// URLs will result in a null or file:// Origin which can't be authorized via the second option, therefore the need to sometimes host the application via (local) webserver.

[–] [email protected] 3 points 1 day ago* (last edited 1 day ago)

gespeicherte Posts/Comments sollten eigentlich mit übertragen werden, sofern vorhanden. Kann allerdings sein, dass Lemmy da beim Import manchmal bisschen was versemmelt. Da können die Tools leider nichts machen, im Zweifelsfall einfach erneut probieren. Du kannst dir auch mal im Editor bei meinem Tool oder in den heruntergeladenen Nutzerdaten (ist ne Klartextdatei) schauen, ob unter saved_posts überhaupt was exportiert wurde.

Eigens erstelle Posts/Comments/PNs werden absichtlich nicht übertragen. Diese sind zum einen nicht Teil der exportierbaren user data, zum anderen könnte man das zwar technisch mit ein paar API-Anfragen pro Post/Comment zwar nachstellen, allerdings wären die Erstellungszeitpunkte dann jeweils die der Anfrage und nicht die originalen. Das ist meiner Meinung nach nicht Sinn der Sache und tut mehr schlechtes als gutes.

[–] [email protected] 3 points 1 day ago

Der Importprozess ist additiv, heisst, wenn du Daten von einem anderen Account oder (teilweise) neue Daten von irgendeinem Account importierst, werden die vorhandenen Daten nicht überschrieben, lediglich die Einträge, die vorher noch nicht vorhanden waren, ergänzt.

Kurz: Mehrmaliges Importieren, auch aus mehreren Quellen oder gar selbst geschrieben, ist kein Problem.

[–] [email protected] 2 points 1 day ago (1 children)

Wurden erstellt!

 

@[email protected] und ich haben mehr oder weniger unabhängig zwei Web Apps entwickelt , welche beide bis auf gewisse Extrafeatures den Accountumzug so einfach wie möglich gestalten sollten:

https://stablenarwhal.github.io/Lemmy-Userdata-Migration/

Features:

  • Don't trust me or GitHub? Clone the project and host it yourself or run it locally (Example in Wiki)
  • Export user data from any Lemmy instance (>=v0.19)
  • Download user data as a text file
  • Modify user data, e.g. to add or remove followed users/communites (Example in Wiki)
    • "display_name" ​
    • "bio" ​
    • "avatar" ​
    • "banner" ​
    • "matrix_id" ​
    • "bot_account" ​
    • "settings" ​
    • "followed_communities" ​
    • "saved_posts" ​
    • "saved_comments" ​
    • "blocked_communities" ​
    • "blocked_users" ​
    • "blocked_instances"
  • Transfer user data to the target account on the target instance

https://elvith-de.github.io/lemmy-migration/

Features:

  • Login and export settings from any Lemmy instance (e.g. feddit.de)
  • Optionally: Find local communities on the target instance that match followed communities
  • Optionally: Backup your settings to a file (can be imported on any Lemmy instance in your profile)
  • Login and import settings to any Lemmy instance (e.g. feddit.org)
 

@[email protected] und ich haben mehr oder weniger unabhängig zwei Web Apps entwickelt , welche beide bis auf gewisse Extrafeatures den Accountumzug so einfach wie möglich gestalten sollten:

https://stablenarwhal.github.io/Lemmy-Userdata-Migration/

Features:

  • Export user data from any Lemmy instance (>=v0.19)
  • Download user data as a text file
  • Modify user data, e.g. to add or remove followed users/communites (Example in Wiki)
    • "display_name" ​
    • "bio" ​
    • "avatar" ​
    • "banner" ​
    • "matrix_id" ​
    • "bot_account" ​
    • "settings" ​
    • "followed_communities" ​
    • "saved_posts" ​
    • "saved_comments" ​
    • "blocked_communities" ​
    • "blocked_users" ​
    • "blocked_instances"
  • Transfer user data to the target account on the target instance

https://elvith-de.github.io/lemmy-migration/

Features:

  • Login and export settings from any Lemmy instance (e.g. feddit.de)
  • Optionally: Find local communities on the target instance that match followed communities
  • Optionally: Backup your settings to a file (can be imported on any Lemmy instance in your profile)
  • Login and import settings to any Lemmy instance (e.g. feddit.org)
[–] [email protected] 3 points 1 day ago (3 children)

Hier die (aktuellen) Links zu meinem und einem anderen Projekt, welche beide bis auf gewisse Extrafeatures den Accountumzug so einfach wie möglich gestalten sollten:

https://stablenarwhal.github.io/Lemmy-Userdata-Migration/

Features:

  • Export user data from any Lemmy instance (>=v0.19)
  • Download user data as a text file
  • Modify user data, e.g. to add or remove followed users/communites (Example in Wiki)
    • "display_name" ​
    • "bio" ​
    • "avatar" ​
    • "banner" ​
    • "matrix_id" ​
    • "bot_account" ​
    • "settings" ​
    • "followed_communities" ​
    • "saved_posts" ​
    • "saved_comments" ​
    • "blocked_communities" ​
    • "blocked_users" ​
    • "blocked_instances"
  • Transfer user data to the target account on the target instance

https://elvith-de.github.io/lemmy-migration/

Features:

  • Login and export settings from any Lemmy instance (e.g. feddit.de)
  • Optionally: Find local communities on the target instance that match followed communities
  • Optionally: Backup your settings to a file (can be imported on any Lemmy instance in your profile)
  • Login and import settings to any Lemmy instance (e.g. feddit.org)
[–] [email protected] 5 points 1 day ago* (last edited 1 day ago) (2 children)

The whole point of this being a web app is to make it as easy as possible for the user to download/modify/transfer their user data. LASIM is a traditional app the user has to download and install, similar to a script this web app was developed to replace due to being too difficult to use for some users.

The import functionality targeted by this API is additive and my app features a built-in editor to add, modify or remove information as the user sees fit. To achieve your stated goal, you'd have to remove anything except the blocked_users entries before importing, which my app supports, I added a wiki entry explaining the workflow in more Detail.

I may add options to modify the exported data in some ways via a simple checkbox in the future, but I wouldn't count on it. I'm always open for pull requests!

[–] [email protected] 14 points 1 day ago
  • "display_name" ​
  • "bio" ​
  • "avatar" ​
  • "banner" ​
  • "matrix_id" ​
  • "bot_account" ​
  • "settings" ​
  • "followed_communities" ​
  • "saved_posts" ​
  • "saved_comments" ​
  • "blocked_communities" ​
  • "blocked_users" ​
  • "blocked_instances"
[–] [email protected] 2 points 1 day ago

The export/import functionality is, yes. This implementation uses the same API endpoints, but the main reason for this existing:

An instance I was on slowly died, starting with the frontend (default web UI). At least at the time, no client implemented the export/import functionality, so I wrote a simple script in Bash to download the user data, if the backend still works.

Running a script can still be a challenge to some users, so I wrote a web application with the same functionality.

It's a bit redundant if we're talking about regularly working instances, but can be of use if the frontend isn't available for some reason.

[–] [email protected] 26 points 1 day ago (1 children)

The export/import functionality is, yes. This implementation uses the same API endpoints, but the main reason for this existing:

An instance I was on slowly died, starting with the frontend (default web UI). At least at the time, no client implemented the export/import functionality, so I wrote a simple script in Bash to download the user data, if the backend still works. Running a script can still be a challenge to some users, so I wrote a web application with the same functionality. It's a bit redundant if we're talking about regularly working instances, but can be of use if the frontend isn't available for some reason.

 

cross-posted from: https://slrpnk.net/post/10823519

So I wrote a little web app that allows a user to move their user data, like settings and subscribed/banned communities, from one account/instance to another.

It runs completely client-side, but is hosted on GitHub for the moment. Maybe it'll be of some use!

Features:

  • Don't trust me or GitHub? Clone the project and host it yourself or run it locally (Example in Wiki)
  • Export user data from any Lemmy instance (>=v0.19)
  • Download user data as a text file
  • Modify user data, e.g. to add or remove followed users/communites (Example in Wiki)
    • "display_name" ​
    • "bio" ​
    • "avatar" ​
    • "banner" ​
    • "matrix_id" ​
    • "bot_account" ​
    • "settings" ​
    • "followed_communities" ​
    • "saved_posts" ​
    • "saved_comments" ​
    • "blocked_communities" ​
    • "blocked_users" ​
    • "blocked_instances"
  • Transfer user data to the target account on the target instance
[–] [email protected] 3 points 3 days ago (1 children)

Das sollte m.w. auch anonym ohne Login gehen - direkt mit Filter auf “nur lokale”. Nervig ist nur, dass die Repsonse paged ist und ich daher 1-n Requests schicken muss. Ich hoffe aktuell, dass das gut geht.

Theoretisch zumindest sollte sowas ja recht gut funktionieren (Pseudocode):

var communityList = 0;
for (let i = 0; true; i++) {
   var jsonResponse = getRequest('https://feddit.de/api/v3/community/list?type_=Local&limit=50&page=i')
  if (jsonResponse = {'"communities":[]') {
    break;
  } else {
    communityList.add(extractCommunities(jsonResponse))
  }
 

So I wrote a little web app that allows a user to move their user data, like settings and subscribed/banned communities, from one account/instance to another.

It runs completely client-side, but is hosted on GitHub for the moment. Maybe it'll be of some use!

Features:

  • Export user data from any Lemmy instance (>=v0.19)
  • Download user data as a text file
  • Modify user data in the browser, e.g. to add or remove followed instances
  • Transfer user data to the target account on the target instance
 

An dieser Stelle reposte ich auch auf der neuen deutschen Main-Instanz zwei einfache Wege, um seinen User (Settings und abonnierte/geblockte Communities) von einer Lemmy Instanz auf eine andere umzuziehen, beispielsweise von feddit.de auf feddit.org, von meinem ursprünglichen Post unter feddit.de/c/main ( https://alexandrite.app/feddit.de/post/11325409)

Update: Ich habe für die erhöhte Userfreundlichkeit noch eine Web Applikation erstellt, welche den Prozess so einfach wie möglich gestalten soll. Zu finden hier:

https://stablenarwhal.github.io/Lemmy-Userdata-Migration/

Features:

  • Export user data from any Lemmy instance (>=v0.19)
  • Download user data as a text file
  • Modify user data in the browser, e.g. to add or remove followed instances
  • Transfer user data to the target account on the target instance

Update 2: @[email protected] hat auch eine Web Applikation mit ähnlicher Funktionalität entwickelt. Zu finden hier:

https://elvith-de.github.io/lemmy-migration/

Features:

  • Login and export settings from any Lemmy instance (e.g. feddit.de)
  • Optionally: Find local communities on the target instance that match followed communities
  • Optionally: Backup your settings to a file (can be imported on any Lemmy instance in your profile)
  • Login and import settings to any Lemmy instance (e.g. feddit.org)

Weg 1, falls man noch einen Browser mit aktiver Session auf feddit.de hat:

Lemmy bietet seit Version 0.19 eine Funktion an, um die user data zu ex- und importieren. Das geht normalerweise über einen Button in den Settings des Webinterfaces, das geht aktuell bei feddit.de nicht.

Aber der zugrundeliegende API-Aufruf funktioniert noch, solange man noch mit einem Browser auf feddit.de eingeloggt ist:

  1. Man gehe auf https://feddit.de/api/v3/user/export_settings und speichert die zurückgegebene Datei als irgendwas.json
  2. Man nehme einen (neuen) Account auf einer stabilen Instanz der Wahl, gehe auf /settings und lade irgendwas.json über den Import-Button hoch.
  3. Voilà, man genieße die neue Instanz.

Das funktioniert mit jeder Instanz >=0.19, man muss lediglich das "feddit.de" in der URL ersetzen. Und wenn das Webinterface funktioniert, geht das auch über den Export- Button in den Settings.


Weg 2:

Für die Leute, die keine offene Browser Session haben, hier ein kleines, aber funktionales Bash Script, welches im Ausführungsverzeichnis eine myFedditUserData.json erstellt, welche bei anderen Instanzen importiert werden kann.

Anforderungen:

  • Linux/Mac OS X /Windows mit WSL
  • jq installiert (Unter Ubuntu/Debian/Mint z.B. per sudo apt install -y jq

Anleitung:

  • Folgendes Script unter einem beliebigen Namen mit .sh Endung abspeichern, z.B. getMyFedditUserData.sh
  • Script in beliebigen Textprogramm öffnen, Username/Mail und Passwort ausfüllen (optional Instanz ändern)
  • Terminal im Ordner des Scripts öffnen und chmod +x getMyFedditUserData.sh ausführen (Namen eventuell anpassen)
  • ./getMyFedditUserData.sh im Terminal eingeben
  • Nun liegt im Ordner neben dem Script eine frische myFedditUserData.json

Anmerkung: Das Script ist recht simpel, es wird ein JWT Bearer Token angefragt und als Header bei dem GET Aufruf von https://feddit.de/api/v3/user/export_settings mitgegeben. Wer kein Linux/Mac OS X zur Verfügung hat, kann den Ablauf mit anderen Mitteln nachstellen.

Das Script:

#!/bin/bash

# Basic login script for Lemmy API

# CHANGE THESE VALUES
my_instance="https://feddit.de"			# e.g. https://feddit.nl
my_username=""			# e.g. freamon
my_password=""			# e.g. hunter2

########################################################

# Lemmy API version
API="api/v3"

########################################################

# Turn off history substitution (avoid errors with ! usage)
set +H

########################################################

# Login
login() {
	end_point="user/login"
	json_data="{\"username_or_email\":\"$my_username\",\"password\":\"$my_password\"}"

	url="$my_instance/$API/$end_point"

	curl -H "Content-Type: application/json" -d "$json_data" "$url"
}

# Get userdata as JSON
getUserData() {
	end_point="user/export_settings"

	url="$my_instance/$API/$end_point"

	curl -H "Authorization: Bearer ${JWT}" "$url"
}

JWT=$(login | jq -r '.jwt')

printf 'JWT Token: %s\n' "$JWT"

getUserData | jq > myFedditUserData.json

@[email protected] hat mein Script auch in PowerShell nachgebaut, welches unter Windows ohne WSL auskommt: https://gist.github.com/elvith-de/89107061661e001df659d7a7d413092b

# CHANGE THESE VALUES
$my_instance="https://feddit.de" # e.g. https://feddit.nl
$target_file = "C:\Temp\export.json"

########################################################
#Ask user for username and password
$credentials = Get-Credential -Message "Logindata for $my_instance" -Title "Login"

$my_username= $credentials.UserName
$my_password= $credentials.GetNetworkCredential().Password

# Lemmy API version
$API="api/v3"

# Login
function Get-AuthToken() {
    $end_point="user/login"
    $json_data= @{
        "username_or_email" = $my_username;
        "password" = $my_password
    } | ConvertTo-Json

    $url="$my_instance/$API/$end_point"

    (Invoke-RestMethod -Headers @{"Content-Type" = "application/json"} -Body $json_data -Method Post -Uri $url).JWT
}

# Get userdata as JSON
function Get-UserData() {
    $end_point="user/export_settings"

    $url="$my_instance/$API/$end_point"

    Invoke-RestMethod -Headers @{"Authorization"="Bearer $($JWT)"} -Method Get -Uri $url
}

$JWT= Get-AuthToken

Write-Host "Got JWT Token: $JWT"

Write-Host "Exporting data to $target_file"
Get-UserData | ConvertTo-Json | Out-File -FilePath $target_file
 
  1. Install the Userscripts extension for Safari, open the app and go through the setup as instructed by the app. Don't forget to activate the extension for Safari.
  2. After fully setting up the Userscripts extension, go to the TwitchAdSolutions git repo and click on userscript next to video-swap-new. You can play around with vaft as well, but video-swap-new works way better on iOS in my experience. This script replaces ads with a lower resolution stream.
  3. Install the script by opening the Userscripts extension in Safari while the script you opened in step 2 is the active tab and clicking the Install button.
  4. Go to twitch.tv and enjoy your ad-free experience.

Optional:

  • When you have the Twitch App installed, Safari displays the annoying "open in App" Bar on top of the website. This also leaks into Fullscreen Mode. To get rid of it, uninstall the Twitch App and optionally install another extension to remove those Bars altogether, like Unsmartifier.
  • Want 7TV/BTTV/FFZ features like Emotes or a customizable Twitch Experience? Install the FFZ userscript, reload twitch.tv and configure your experience and/or install Add-ons like 7TV Emotes by clicking the new icon top right.
 

Using reddit without an account is a pain nowadays, especially with any commercial VPN. There are ways around that:

Some of you may known the rather short-lived Libreddit, an awesome frontend for Reddit that got struck down by its success.

Redlib is a (still working) fork of Libreddit with a few instances. Due to reddits API Limits, it's not very practical to rely on one instance.

A quite elegant solution is the Automatic Redlib Quota & Error Redirector userscript. Once installed, most Redlib errors are automatically detected and your request gets redirected to another instance. This results in an excellent user experience, altough some instances can be a bit slow if you're trying to access media.

The list of available Redlib instances the script uses gets updated quite frequently. The script also works nicely with redirect plugins, e.g. this one for Firefox, if you want to automatically redirect all Reddit URLs to Redlib.

view more: next ›