Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Anisha Dalal

Anisha Dalal

Community Learner
Share
158Questions
157Answers
271.8KViews on questions

Is it possible to exploit ASP NET_SessionId?

Regarding the ASP NET SessionId, these are intended to be examples specific to a system that has another vulnerability besides Session Fixation (XSS, HTML Injection, etc) - these are not attacks that are likely to work in any real world situation. If you wanted to execute this attack there would be two steps: Find a…

Cyber Security

Answered May 27, 2024 · 5.0K Views Read answer →

How to format date to 'yyyy-MM-dd' using Apex

You didn't do the same thing in both examples: String foo(Date input) { // your first example return DateTime.newInstance( input.year(), input.month(), input.day() ).format('yyyy-MM-dd'); } String bar(Date input) { // your second example Datetime output = input; // Type Coercion ^^^^^ return…

Devops

Answered May 27, 2024 · 10.0K Views Read answer →

How Does CreateOrReplaceTempView Work In Spark?

createOrReplaceTempView creates (or replaces if that view name already exists) a lazily evaluated "view" that you can then use like a hive table in Spark SQL. It does not persist to memory unless you cache the dataset that underpins the view. scala> val s = Seq(1,2,3).toDF("num") s: org.apache.spark.sql.DataFrame =…

Spark

Answered Nov 17, 2022 · 2.3K Views Read answer →

Why is integar.min_value and integar.max_value equal to 1 in java?

Java will overflow and underflow integar.min_value and integar.max_value max_int = 2147483647 (01111111111111111...1) min_int = -2147483648 (10000000000000000...0) //first bit is -2^31 under flow: -2147483648 - 1 = 2147483647 so.... min_int- max_int = -2147483648 - 2147483647 = -2147483648 -(1 + 2147483646) =…

Java

Answered Oct 13, 2022 · 1.3K Views Read answer →

What is the java catch runtime exception?

I do not know enough context to know whether your colleague is doing something incorrectly or not, so I am going to argue about this in a general sense. I do not think it is always an incorrect practice to turn checked exceptions into some flavour of java catch runtime exception. Checked exceptions are often misused…

Java

Answered Oct 10, 2022 · 1.4K Views Read answer →

What is a java pig latin translator

I would suggest the following points to make this programme more object-oriented: Try using a collection object provided by Java pig latin instead of using arrayString[] word = userInput.split(" "); could be List words = Arrays.asList(userInput.split(" ")); or using external library Guava List words = Splitter.on("…

Java

Answered Oct 10, 2022 · 1.3K Views Read answer →

How to have sql server compare schema?

After struggling with an easy way to do this same task - see what's changed between 2 models, I wrote the following SQL Script that will sql server compare schema to determine new and deleted columns set nocount on; -- Set the two variables newmodel and old model to the appropriate database names and execute the…

SQL Server

Answered Oct 4, 2022 · 1.3K Views Read answer →

How can I get sql update from another table?

To get sql update from another table- There are quite a few ways to achieve your desired results.Non Deterministic methods (in the event that many rows in table 2 match one in table 1) UPDATE T1 SET address = T2.address, phone2 = T2.phone FROM #Table1 T1 JOIN #Table2 T2 ON T1.gender = T2.gender AND T1.birthdate =…

SQL Server

Answered Sep 29, 2022 · 1.1K Views Read answer →

1. How to resolve the error - can't connect to the local mysql server through socket '/var/lib/mysql/mysql.sock' (2)?

To resolve the error - can't connect to local mysql server through socket '/var/lib/mysql/mysql.sock' (2) - Check the following First check if another instance is running in the same machine ps ax | grep mysql Then, check if your file my.cnf (probably in /etc/mysql/ folder) is correctly configured with[mysqld] datadir…

SQL Server

Answered Sep 29, 2022 · 1.2K Views Read answer →

How does sslstrip work?

You should watch Moxie Marlinspike's talk Defeating SSL using SSLStrip. In short SSLStrip is a type of MITM attack that forces a victim's browser into communicating with an adversary in plain-text over HTTP, and the adversary proxies the modified content from an HTTPS server. To do this, SSLStrip is "stripping"…

Cyber Security

Answered Sep 27, 2022 · 1.2K Views Read answer →

More members from the Cyber Security community

Learners asking and answering questions on the same topics — follow their questions and join in.

Latest Cyber Security Blogs

Guides, tips and career advice on Cyber Security from JanBask experts.

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.