spoof

how to spoof arrow keys to my activity on android

雨燕双飞 提交于 2019-12-30 12:21:38
问题 I am trying to override the volume buttons to act as Up/Down arrow keys (i.e. they should move focus around on all of my activities focus-able Views.) To do so I am overriding my activities dispatchKeyEvent() method note that I also tried onKeyDown() but some portion of my volume key events was still going thru to the system, my device has audible feedback when you change the volume. I could still hear the beep but the volume was not actually being changed. Switching to dispatchKeyEvent()

Mongoid-peperclip [paperclip] Content Type Spoof: Error

心已入冬 提交于 2019-12-11 19:59:54
问题 I need to upload some large CSV files via mongoid-paperclip and I am getting error Uploaded file2 my_file has an extension that does not match its contents . In terminal I can see this error as [paperclip] Content Type Spoof: my_file.csv (["text/csv", "text/comma-separated-values"]), content type discovered from file command: application/octet-stream. See documentation to allow this combination. Ok, I set validation as do_not_validate_attachment_file_type :my_file It does not help same error.

TCP ACK spoofing

两盒软妹~` 提交于 2019-12-11 06:45:27
问题 I am writing a program that fakes TCP requests and collects the data to store in a local buffer. For this, in the system connected to the client i have configured the iptables to keep all the incoming packets to a queue before routing. Then i use the netfilter library to read the packets from the queue. After this using RAW sockets I send the fake TCP packets to the client. With this I am able to fake the SYN/ACK packet in response to the SYN request from the client. But issue happens when I

How do I use cURL & PHP to spoof the referrer?

大城市里の小女人 提交于 2019-12-10 23:33:03
问题 I'm trying to learn cURL with PHP to spoof the referrer to a website. With the following script I expected to accomplish this...but it seems to not work. Any ideas/suggestion where I am going wrong?? Or do you know of any tutorials that could help me figure this out? Thanks! Jessica <?php $host = "http://mysite.com"; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $host); curl_setopt($ch, CURLOPT_VERBOSE, 1); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_AUTOREFERER,

Spoof JS Objects

亡梦爱人 提交于 2019-12-08 02:04:28
问题 I've been wondering if there is a way to spoof JS objects like navigator, screen, etc. to send fake data whenever a page request it. I use C# to develop an application which contains a GeckoFx browser and I want to do something like this: every time I open a webpage which contains JS to retrieve information about the user (for example screen resolution, what plugins I have installed, etc), the browser should send fake information (my screen resolution is 1024x768 and I want to send 1440x900,

Spoof JS Objects

末鹿安然 提交于 2019-12-06 09:33:51
I've been wondering if there is a way to spoof JS objects like navigator, screen, etc. to send fake data whenever a page request it. I use C# to develop an application which contains a GeckoFx browser and I want to do something like this: every time I open a webpage which contains JS to retrieve information about the user (for example screen resolution, what plugins I have installed, etc), the browser should send fake information (my screen resolution is 1024x768 and I want to send 1440x900, etc). Can anyone help me with this piece of information? Thanks! It is possible to spoof JS objects by

how to spoof arrow keys to my activity on android

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-01 12:14:41
I am trying to override the volume buttons to act as Up/Down arrow keys (i.e. they should move focus around on all of my activities focus-able Views.) To do so I am overriding my activities dispatchKeyEvent() method note that I also tried onKeyDown() but some portion of my volume key events was still going thru to the system, my device has audible feedback when you change the volume. I could still hear the beep but the volume was not actually being changed. Switching to dispatchKeyEvent() took away the beep coming from the system. Here is my current dispatchKeyEvent() method: @Override public

spoof from address through gmail

无人久伴 提交于 2019-11-29 11:46:55
I am trying to send a spoofed email using gmail. before people freak out, no I am not spamming anybody (if you have to know why, an explanation is below). Using this question and answer , I was able to send a test email to myself with a spoofed to address (it appeared as I wanted), however, regardless of what I enter in the MAIL FROM field or the From: field in the DATA , it always appears from the address I used to authenticate. My question is whether it's possible to spoof the from address as well. The goal would be for the from address to appear as something other than an email address.

spoof from address through gmail

坚强是说给别人听的谎言 提交于 2019-11-28 05:19:47
问题 I am trying to send a spoofed email using gmail. before people freak out, no I am not spamming anybody (if you have to know why, an explanation is below). Using this question and answer, I was able to send a test email to myself with a spoofed to address (it appeared as I wanted), however, regardless of what I enter in the MAIL FROM field or the From: field in the DATA , it always appears from the address I used to authenticate. My question is whether it's possible to spoof the from address

Disable / Check for Mock Location (prevent gps spoofing)

二次信任 提交于 2019-11-26 16:58:21
Looking to find the best way to prevent / detect GPS spoofing on Android. Any suggestions on how this is accomplished, and what can be done to stop it? I am guessing the user has to turn on mock locations to spoof GPS, if this is done, then they can spoof GPS? I guess I would need to just detect if Mock Locations are enabled? Any other suggestions? Jambaaz I have done some investigation and sharing my results here,this may be useful for others. First, we can check whether MockSetting option is turned ON public static boolean isMockSettingsON(Context context) { // returns true if mock location