Skip to content

Instantly share code, notes, and snippets.

View mataprasad's full-sized avatar

Mata Prasad Chauhan mataprasad

View GitHub Profile
https://wordpress.org/plugins/featured-image-from-url/
https://www.hostinger.com/tutorials/wordpress/how-to-add-php-code-to-wordpress-post-or-page
DECLARE @UserName VARCHAR(MAX)='mata|chauhan|0|[email protected]'
DECLARE @USER TABLE (ID INT IDENTITY,TITLE VARCHAR(500))
DECLARE @FIRSTNAME VARCHAR(500),@LASTNAME VARCHAR(500),@EMAIL VARCHAR(500),@AGENTID_REFERAL INT
INSERT INTO @USER SELECT * FROM DBO.SPLIT(@UserName,'|')
SELECT id, TITLE FROM @USER
SELECT @FIRSTNAME = [1], @LASTNAME = [2],@AGENTID_REFERAL = [3],@EMAIL = [4] FROM (SELECT id, TITLE FROM @USER) X PIVOT (MAX(TITLE) FOR id IN ([1],[2],[3],[4])) Y
SELECT @FIRSTNAME, @LASTNAME,@AGENTID_REFERAL,@EMAIL
To enable rest end point , wp version must be greater thean 4.7
Now install the plugin disable-json-api.1.4.2 [https://wordpress.org/plugins/disable-json-api/]
Now if u activate the plugin and got to plugin option u will see the endpoiunt urls for rest api
Now to add your own endpoint, go to your activated theme's functions.php
and paste the below demo code
----------
/**
The android/meterpreter/reverse_tcp payload is a Java-based Meterpreter that can be used on an
Android device. It is still at an early stage of development, but there are so many things you can
do with it already.
The Android Meterpreter allows you to do things like take remote control the file system, listen to phone calls, retrieve or send SMS messages, geo-locate the user, run post-exploitation modules, etc.
## Vulnerable Application
You can test android/meterpreter/reverse_tcp on these devices:
Decompile meterpreter reverse tcp connection APK
Create apk to run in background on android rebooot , not showing icon on launcher
Logan Lucky -- Movie
https://stackoverflow.com/questions/10428510/how-to-start-launch-application-at-boot-time-android
https://stackoverflow.com/questions/10428510/how-to-start-launch-application-at-boot-time-android
android:installLocation="internalOnly"
using CrossPlatformAESEncryption.Helper;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace CrossPlatformAESEncryption
{
class Program
{
package CrossPlatformAESEncryption;
import CrossPlatformAESEncryption.Helper.CryptoHelper;
public class Program {
public static void main(String args[]) {
try{
String input = "Text to encrypt";
System.out.println("input:" + input);
String cipher = CryptoHelper.encrypt(input);
import UIKit
class ViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
let input:String = "Text to encrypt";
debugPrint("input:" + input);
let cipher:String = CryptoHelper.encrypt(input:input)!;
debugPrint("cipher:" + cipher);
<?php
include_once "./Helper/CryptoHelper.php";
$input = "Text to encrypt";
echo "input:". $input."</br>";
$cipher = CryptoHelper::encrypt($input);
echo "cipher:". $cipher."</br>";
$output = CryptoHelper::decrypt($cipher);
echo "output:".$output;
//https://resizeappicon.com/
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package mobileicon;
import java.io.File;