Network-Security | A collection of some interesting network security projects | Awesome List library
kandi X-RAY | Network-Security Summary
kandi X-RAY | Network-Security Summary
A collection of some interesting network security projects
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of Network-Security
Network-Security Key Features
Network-Security Examples and Code Snippets
Community Discussions
Trending Discussions on Network-Security
QUESTION
I am getting the error in the title line. I have tried to overcome it by trying the suggestions I have found at stack overflow including adding to AndroidManifest.xml this:
...ANSWER
Answered 2021-Jun-04 at 01:04Add this to you app
QUESTION
my program takes an URL from the user, so it may make request to any website of the internet. I'm trying to make this possible, I looked up all the answers about "Android HTTP Cleartext" errors, and made this, but it still doesn't let me connect my test local PHP server, what am I missing here?
...ANSWER
Answered 2021-May-14 at 18:08Try changing your network_security_config.xml
as follows:
QUESTION
To communicate with back from my android app I use network-security-config.xml, which looks like
...ANSWER
Answered 2021-Apr-13 at 13:43The declarative network security configuration was added in Android 7 (API 24). Before that you have to do it programatically. Unfortunately it is not straightforward, the steps are :
- Put the certificate in a
KeyStore
- Create a
X509TrustManager
- Create a
SSLSocketFactory
- Build an
OkHttpClient
- Use the client in the
Retrofit
builder
There is OkHttp recipe describing this.
It seems that there also is an OkHttp extension with a much simpler API :
QUESTION
I am trying to make a simple android app that makes a request to google, the expected behavior that my app should make a connection to google and then stop, what I got this error
...ANSWER
Answered 2021-Apr-09 at 01:34According to your error log, your problem is you're attempting to connect to the internet on the main thread. Android does not allow you to setup an internet connection on the main thread because that would freeze up everything else while it makes the connection. You need to connect on a different thread.
EDIT: In light of AsyncTask
being depreciated, the recommended alternatives appear to be using the interfaces contained in java.util.concurrent
to make threads and/or threadpools or the coroutine libraries for Kotlin. Be sure to check the documentation and make a thread that establishes the connection in the background.
QUESTION
I want to create a virtual private network in which I can manage virtual machines's interfaces with iproute2.
For example, with AZ CLI, I create two virtual machines in subnet 172.16.1.0/24, each machine has one interface:
az network vnet create -g test -n net --address-prefix 172.16.0.0/16 --ddos-protection false --vm-protection false
az network vnet subnet create -g test --vnet-name net -n subnet1 --address-prefixes 172.16.1.0/24 --network-security-group test
az network nic create -g test -n vm1-nic --vnet-name net --subnet subnet1 --private-ip-address 172.16.1.10 --public-ip-address vm1-pub
az network nic create -g test -n vm2-nic --vnet-name net --subnet subnet1 --private-ip-address 172.16.1.11 --public-ip-address vm2-pub
az vm create -g test -n vm1 --image rhel --size Standard_F4 --generate-ssh-keys --nics vm1-nic
az vm create -g test -n vm2 --image rhel --size Standard_F4 --generate-ssh-keys --nics vm2-nic
Then I connect on vm1 with ssh, ping 172.16.1.11 should work.
It is possible to change vm's network interfaces ip addresses with iproute2 command? Like I put 10.100.0.1/24 on vm1's interface and 10.100.0.2/24 on vm2's interface with iprout2 command and I ping to 10.100.0.2 from 10.100.0.1.
I want to understand how virtual machines are connected, the connection is simulated as a wired connection which we can configure network interfaces?
...ANSWER
Answered 2021-Mar-24 at 02:19See the description for the static IP address here:
If you manually set the private IP address within the operating system, make sure it matches the private IP address assigned to the Azure network interface. Otherwise, you can lose connectivity to the VM.
It means if you want to change the IP address within the VM, you need first to change the configuration of the VM NIC in Azure, then you can change the IP address within the VM using the command. If not, you can't change it. Generally, all the things of the VM are configured by Azure.
QUESTION
Networking newbie here. From the Documentation it feels like both NSG and Routing tables(UDR) are doing the same thing - capable of defining ACLs at multiple levels (Vnet, Subnet, VM)
https://docs.microsoft.com/en-us/azure/virtual-network/network-security-group-how-it-works https://docs.microsoft.com/en-us/azure/virtual-network/virtual-networks-udr-overview
So how are they different and when is each used?
thanks.
...ANSWER
Answered 2021-Mar-04 at 01:47Azure automatically creates a route table for each subnet within an Azure virtual network and adds system default routes to the table. The route table is like a networking map that tells the traffic from one place to another place via the next hop. This generates the "path" but does not filter traffic.
The Azure network security group is used to filter network traffic to and from Azure resources in an Azure virtual network. It contains security rules that allow or deny inbound network traffic to, or outbound network traffic from, several types of Azure resources. If there is no route to one place from a subnet, you even do not need to configure the security rules because there is no path. So when you consider the NSG it should have a successful network route.
For example, usually, we can access Azure VM in Azure virtual network via SSH or RDP over the Internet but it has a less secure way to expose the port 22 or 3389. We can restrict access to your Azure VM via specifying the source IP address in the NSG. This setting allows traffic only from a specific IP address or range of IP addresses to connect to the VM. Read more details here. In this scenario, we need to ensure that there is a route to the internet from your Azure virtual network and vice versa.
QUESTION
I am trying to debug an app on the Google Playstore so that I can see the requests that it is sending out. I've set up Charles Proxy on my computer to help me do so, but I am having issues with viewing requests sent out with https. My steps are listed below.
My Computer:
Manjaro Linux
My Phone:
Google Pixel 4a
Android 11
Not rooted
My Settings:
Using Charles v4.6.1
Proxy Settings
SSL Proxying Settings
My Access Control Setting's contain my phone's IP.
My Phone Settings:
Proxy Settings
Certificate
Here are my steps to allow the app use SSL through charles:
...ANSWER
Answered 2021-Jan-29 at 10:56Your network config there is within , which only applies for debug builds. Did you build the application in debug mode, or for production? If you don't build in debug mode then that config won't apply.
You probably want to use instead, which applies to all builds, not just debug builds. There's a full example here: https://httptoolkit.tech/docs/guides/android/#if-you-dont-have-a-custom-network-security-config.
If that doesn't work, then it's likely that there's some certificate pinning in place in the application code itself, independent of the network security settings. To fix that you'll need to manually edit the code itself. You can also try using https://github.com/shroudedcode/apk-mitm which has a selection of automated patches that disable many common manual pinning implementations for you.
QUESTION
I need to upload the thumbnails of my files from the web to firebase storage. The URL is always like
with the HTTPS and I'm having a lot of trouble doing this
In order to upload to firebase storage, I can use a bitmap, inputStream, URL, or a local File
I have tried with many different libraries, Picasso, glide,... but I always get the same error of file not found. From what I read here, I think it is because it is an HTTPS
How can I do this?
Thanks!
EDIT:
I tried using the glide library as sugested, but didnt work with all urls, this is my code:
...ANSWER
Answered 2021-Jan-23 at 12:39If I understood correctly first of all you have a problem loading the image. I'm not sure that the url you specified can be loaded without API (it is not possible to open it in the browser for me)
Have you tried any other image/url?
Check in the log where the error is...
You can load bitmap with Glide (working code):
QUESTION
I have a server with SelfSigned certificate. This certificate has been added to the Trusted credentials/User list on the Android 11 device. My application and browser work correctly with it: I can download pdf file from MyServer througt Chrome browser.
My network-security-config.xml
...ANSWER
Answered 2020-Dec-30 at 13:38Is it bug inside PdfViewerActivity or I have done something wrong?
Neither. There are dozens of possible PDF viewer apps that might be launched by that Intent
. None of them are your app, and so none of them are affected by your network security configuration. And on newer versions of Android, user-installed certificates are ignored by default.
You will need to download the PDF file yourself, then use FileProvider
and its getUriForFile()
method to get a Uri
to use with your Intent
.
Alternatively, you could switch the server to use a regular SSL certificate (e.g., Let's Encrypt) instead of a self-signed certificate, if that is practical for your situation.
QUESTION
I'm trying to use socket.io client on android/kotlin with a node js socket io server
MainActivity:
...ANSWER
Answered 2020-Dec-24 at 15:42Ok, So today i have recreate the entire project, step by step with wireshark running on my other screen.
And spoil : it's working. i will detail all steps, in case of another person got the same issue.
Add this in gradle module file :
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install Network-Security
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page