user-agent

How safe is it to use Selenium to auto-fill forms with sensitive information

余生颓废 提交于 2020-01-06 04:50:08
问题 Selenium is usually used for testing. But what if someone decided to use it to autofill forms on websites with personal data(username, password, credit card number). How safe would that be? I mean the actual part where you call the driver object and pass it all this secure information. Let's assume the information is securely stored until the moment you pass it to the driver. I wonder if that's what websites that aggregate your credit card and bank accounts use instead of api calls(running a

Is using a faked user agent allowed? [closed]

℡╲_俬逩灬. 提交于 2020-01-05 20:48:42
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . I was wondering if it is allowed to fake the user agent to pretend that me script is safari or any other browser? Can I get into trouble if I faked the user agent in my script? I don't mean a custom one such as "My Script", I mean a user agent which belongs to a browser like "Mozilla/5.0 (Macintosh; Intel Mac OS

Define User Agent on InAppBrowser from Cordova

情到浓时终转凉″ 提交于 2020-01-05 08:49:12
问题 I use InAppBrowser plugin from Cordova and I would like to open a webpage from my app ( Android, iOS ). However, the website should know if the user has entered by the mobile browser or through my app. I though that changing the user agent from my app would be able to work. Is there a similar solution to that? I guess right before I open a new window I should define that the user has entered the website through my app. window.open("http://test.example.com", "_blank", "location=no"); 回答1: Sure

What is the TYPE of <denystrings> in <filteringRules>'s <requestFiltering>?

别等时光非礼了梦想. 提交于 2020-01-04 16:25:31
问题 <security> <requestFiltering> <filteringRules> <filteringRule name="My filter" scanUrl="false" scanQueryString="false"> <scanHeaders> <add requestHeader="User-Agent" /> </scanHeaders> <denyStrings> -- I'm talking about the type of string in the following line -- <add string="Mozilla" /> </denyStrings> </filteringRule> </filteringRules> </requestFiltering> </security> I know that <add string="Mozilla" /> will look up the user agent for " Mozilla ". In fact Mozilla will be %Mozilla% (if we talk

Awesomium, change useragent and referrer

心不动则不痛 提交于 2020-01-04 05:52:13
问题 I just started to use awesomium. I wanted to understand how to change user-agent and referrer. i need for example to initialize 5 istance o awesomium webcontrol and for each of them i need different user-agent and different referrer. this is my simple code private void newbrowser() { browser = new Awesomium.Windows.Forms.WebControl(); browser.Paint += browser_Paint; browser.Location = new System.Drawing.Point(1, 1); browser.Name = "webControl"; browser.Size = new System.Drawing.Size(1024, 768

setting ios UserAgent via NSUserDefaults: works half the time?

£可爱£侵袭症+ 提交于 2020-01-04 02:42:08
问题 This is driving me crazy. I have two apps that are just UIWebViews, using XCode 4.5.2 and the iOS 6.0 SDK. I want to change the UserAgent of the web calls. I'm using this code in both: NSString *secretagent = @"MyUserAgent"; NSDictionary *dictionary = [[NSDictionary alloc] initWithObjectsAndKeys:secretAgent, @"UserAgent", nil]; [[NSUserDefaults standardUserDefaults] registerDefaults:dictionary]; What's killing me is that it works in one and not in the other, based on my scanning of the web

Is it possible to hide the dock icon programmatically

喜夏-厌秋 提交于 2020-01-02 06:35:13
问题 Is it possible to hide dock icon programmatically on demand. I know one way by which defining property "Application is agent (UIElement)" in plist we make the cocoa app as user agent. But this result in hiding the dock icon permanently. I am looking for a way where i can control visibility of dock icon. Any idea ? 回答1: Unfortunately not. You can transform a background-only app to a foreground app using the TransformProcessType() function but you can't go from a foreground app to a background

How can I detect Android phones and Android tablets differently using the user agent header?

蓝咒 提交于 2020-01-02 03:48:06
问题 For my site I need to be able to tell the difference between when an Android tablet visits and when an Android phone visits. It needs to be detected before the page is sent to the user so using JavaScript to check the screen res isn't an option. At the moment I use this to detect an android device: stripos($ua, 'android') Is there anything unique thar a tablet has in it's user agent? 回答1: You can use PHP's $_SERVER['HTTP_USER_AGENT'] then case-insensitive eregi functions to look for the

how to parse user agent string? python

吃可爱长大的小学妹 提交于 2020-01-02 01:35:07
问题 <field name="http.user_agent" showname="User-Agent: CORE/6.506.4.1 OpenCORE/2.02 (Linux;Android 2.2)\r\n" size="62" pos="542" show="CORE/6.506.4.1 OpenCORE/2.02 (Linux;Android 2.2)" value="557365722d4167656e743a20434f52452f362e3530362e342e31204f70656e434f52452f322e303220284c696e75783b416e64726f696420322e32290d0a"/> <field name="http.user_agent" showname="User-Agent: HTC Streaming Player htc_wwe / 1.0 / htc_vivo / 2.3.5\r\n" size="67" pos="570" show="HTC Streaming Player htc_wwe / 1.0 / htc

How can I block some special User-agents Via IPTables

假装没事ソ 提交于 2020-01-01 19:25:24
问题 I need to block packets from any source that includes some special User agents using IPTables. But I don’t want to manage it via .htaccess or Apache. Is there any way? 回答1: You can do it like this: iptables -A INPUT -p tcp --dport 80 -m string --algo bm --string "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)" -j DROP 回答2: Short answer: No. Long answer: You could try something using the string match with iptables (see iptables -m string -h ). However, the clients would still be able to