URL: http://unis.link/nestor.rug/login.aspx2RelSISkArEjhwQa4zbSnUJTsMwEturbinding23dredirect2WwKFKsJKL3zFZHvWAdv23eeIK...
Submission: On August 21 via manual from DK

Summary

This website contacted 3 IPs in 2 countries across 2 domains to perform 4 HTTP transactions. The main IP is 2606:4700:3037::681b:b7d0, located in United States and belongs to CLOUDFLARENET, US. The main domain is unis.link.
This is the only time unis.link was scanned on urlscan.io!

urlscan.io Verdict: No classification

Domain & IP information

IP Address AS Autonomous System
2 2606:4700:303... 13335 (CLOUDFLAR...)
2 46.183.240.177 35156 (BLACKBOAR...)
4 3
Apex Domain
Subdomains
Transfer
2 rug.nl
nestor.rug.nl
3 KB
2 unis.link
unis.link
2 MB
4 2
Domain Requested by
2 nestor.rug.nl text
2 unis.link unis.link
4 2

This site contains links to these domains. Also see Links.

Domain
www.rug.nl
www.twitter.com
twitter.com
t.co
progresswww.nl
nestorhelp.rug.nl
Subject Issuer Validity Valid
nestor.rug.nl
GEANT OV RSA CA 4
2020-06-05 -
2022-06-05
2 years crt.sh

This page contains 1 frames:

Primary Page: http://unis.link/nestor.rug/login.aspx2RelSISkArEjhwQa4zbSnUJTsMwEturbinding23dredirect2WwKFKsJKL3zFZHvWAdv23eeIK5rfibTo220ldvDYLH2252BPkxYBQn26SAMLRequest23dfVL2B9/
Frame ID: 9D03CA88E7560BAD1C813B4965477207
Requests: 28 HTTP requests in this frame

Screenshot


Detected technologies

Overall confidence: 100%
Detected patterns
  • headers server /^cloudflare$/i

Page Statistics

4
Requests

50 %
HTTPS

50 %
IPv6

2
Domains

2
Subdomains

3
IPs

2
Countries

1893 kB
Transfer

3194 kB
Size

1
Cookies

Redirected requests

There were HTTP redirect chains for the following requests:

4 HTTP transactions

Resource
Path
Size
x-fer
Type
MIME-Type
Primary Request Cookie set /
unis.link/nestor.rug/login.aspx2RelSISkArEjhwQa4zbSnUJTsMwEturbinding23dredirect2WwKFKsJKL3zFZHvWAdv23eeIK5rfibTo220ldvDYLH2252BPkxYBQn26SAMLRequest23dfVL2B9/
3 MB
2 MB
Document
General
Full URL
http://unis.link/nestor.rug/login.aspx2RelSISkArEjhwQa4zbSnUJTsMwEturbinding23dredirect2WwKFKsJKL3zFZHvWAdv23eeIK5rfibTo220ldvDYLH2252BPkxYBQn26SAMLRequest23dfVL2B9/
Protocol
HTTP/1.1
Server
2606:4700:3037::681b:b7d0 , United States, ASN13335 (CLOUDFLARENET, US),
Reverse DNS
Software
cloudflare /
Resource Hash
46d5b3cf4c425c99278173bb1ebebe19e68a1fe8b4f35773738d5ee0560a4c49

Request headers

Host
unis.link
Connection
keep-alive
Pragma
no-cache
Cache-Control
no-cache
Upgrade-Insecure-Requests
1
User-Agent
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.61 Safari/537.36
Accept
text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9
Accept-Encoding
gzip, deflate
Accept-Language
en-US
Upgrade-Insecure-Requests
1
User-Agent
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.61 Safari/537.36

Response headers

Date
Fri, 21 Aug 2020 21:02:15 GMT
Content-Type
text/html
Transfer-Encoding
chunked
Connection
keep-alive
Set-Cookie
__cfduid=d76bb807ad2f55946b344137058d55b571598043735; expires=Sun, 20-Sep-20 21:02:15 GMT; path=/; domain=.unis.link; HttpOnly; SameSite=Lax
Last-Modified
Tue, 23 Jun 2020 17:40:56 GMT
Vary
Accept-Encoding
X-Turbo-Charged-By
LiteSpeed
CF-Cache-Status
DYNAMIC
cf-request-id
04b46d5c55000005ed388de200000001
Server
cloudflare
CF-RAY
5c674b408e2805ed-FRA
Content-Encoding
gzip
truncated
/
14 KB
0
Script
General
Full URL
data:truncated
Protocol
DATA
Server
-, , ASN (),
Reverse DNS
Software
/
Resource Hash
d9fd86dca80fb54a8b58e5d48e12c65ba5eb546ed2ab3b222173794ff529a0f5

Request headers

Referer
http://unis.link/nestor.rug/login.aspx2RelSISkArEjhwQa4zbSnUJTsMwEturbinding23dredirect2WwKFKsJKL3zFZHvWAdv23eeIK5rfibTo220ldvDYLH2252BPkxYBQn26SAMLRequest23dfVL2B9/
User-Agent
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.61 Safari/537.36

Response headers

Content-Type
text/javascript
truncated
/
19 KB
0
Image
General
Full URL
data:truncated
Protocol
DATA
Server
-, , ASN (),
Reverse DNS
Software
/
Resource Hash
ed1ffb621dfdbb3acffc48ba2e07e7c32c6168f1f2e54595775ee2374aad2d2b

Request headers

Referer
http://unis.link/nestor.rug/login.aspx2RelSISkArEjhwQa4zbSnUJTsMwEturbinding23dredirect2WwKFKsJKL3zFZHvWAdv23eeIK5rfibTo220ldvDYLH2252BPkxYBQn26SAMLRequest23dfVL2B9/
User-Agent
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.61 Safari/537.36

Response headers

Content-Type
image/gif
truncated
/
91 KB
0
Script
General
Full URL
data:truncated
Protocol
DATA
Server
-, , ASN (),
Reverse DNS
Software
/
Resource Hash
61c6caebd23921741fb5ffe6603f16634fca9840c2bf56ac8201e9264d6daccf

Request headers

Referer
http://unis.link/nestor.rug/login.aspx2RelSISkArEjhwQa4zbSnUJTsMwEturbinding23dredirect2WwKFKsJKL3zFZHvWAdv23eeIK5rfibTo220ldvDYLH2252BPkxYBQn26SAMLRequest23dfVL2B9/
User-Agent
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.61 Safari/537.36

Response headers

Content-Type
text/javascript
email-decode.min.js
unis.link/cdn-cgi/scripts/5c5dd728/cloudflare-static/
1 KB
1 KB
Script
General
Full URL
http://unis.link/cdn-cgi/scripts/5c5dd728/cloudflare-static/email-decode.min.js
Requested by
Host: unis.link
URL: http://unis.link/nestor.rug/login.aspx2RelSISkArEjhwQa4zbSnUJTsMwEturbinding23dredirect2WwKFKsJKL3zFZHvWAdv23eeIK5rfibTo220ldvDYLH2252BPkxYBQn26SAMLRequest23dfVL2B9/
Protocol
HTTP/1.1
Server
2606:4700:3037::681b:b7d0 , United States, ASN13335 (CLOUDFLARENET, US),
Reverse DNS
Software
cloudflare /
Resource Hash
2595496fe48df6fcf9b1bc57c29a744c121eb4dd11566466bc13d2e52e6bbcc8
Security Headers
Name Value
X-Frame-Options SAMEORIGIN

Request headers

Referer
http://unis.link/nestor.rug/login.aspx2RelSISkArEjhwQa4zbSnUJTsMwEturbinding23dredirect2WwKFKsJKL3zFZHvWAdv23eeIK5rfibTo220ldvDYLH2252BPkxYBQn26SAMLRequest23dfVL2B9/
User-Agent
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.61 Safari/537.36

Response headers

Date
Fri, 21 Aug 2020 21:02:15 GMT
Content-Encoding
gzip
Vary
Accept-Encoding
Last-Modified
Mon, 17 Aug 2020 17:01:45 GMT
Server
cloudflare
ETag
W/"5f3ab7f9-4d7"
X-Frame-Options
SAMEORIGIN
Content-Type
application/javascript
Cache-Control
max-age=172800, public
Transfer-Encoding
chunked
Connection
keep-alive
CF-RAY
5c674b45ee7205ed-FRA
cf-request-id
04b46d5fb5000005ed38928200000001
Expires
Sun, 23 Aug 2020 21:02:15 GMT
truncated
/
5 KB
0
Script
General
Full URL
data:truncated
Protocol
DATA
Server
-, , ASN (),
Reverse DNS
Software
/
Resource Hash
cfe52223d13f6cf30e7f4657a6e0314e714ad0822f8a5f7b477ee3433bf2cb41

Request headers

Referer
http://unis.link/nestor.rug/login.aspx2RelSISkArEjhwQa4zbSnUJTsMwEturbinding23dredirect2WwKFKsJKL3zFZHvWAdv23eeIK5rfibTo220ldvDYLH2252BPkxYBQn26SAMLRequest23dfVL2B9/
User-Agent
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.61 Safari/537.36

Response headers

Content-Type
text/javascript
truncated
/
10 KB
0
Script
General
Full URL
data:truncated
Protocol
DATA
Server
-, , ASN (),
Reverse DNS
Software
/
Resource Hash
e42e14e35cdc68c0ddeee5ceb848f5ff6c158c9c146cd209f3ce4a453ece3bca

Request headers

Referer
http://unis.link/nestor.rug/login.aspx2RelSISkArEjhwQa4zbSnUJTsMwEturbinding23dredirect2WwKFKsJKL3zFZHvWAdv23eeIK5rfibTo220ldvDYLH2252BPkxYBQn26SAMLRequest23dfVL2B9/
User-Agent
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.61 Safari/537.36

Response headers

Content-Type
text/javascript
truncated
/
825 B
0
Image
General
Full URL
data:truncated
Protocol
DATA
Server
-, , ASN (),
Reverse DNS
Software
/
Resource Hash
1bb2279aed6bc1438d2b17a5ffcbac9d37864582aedeeec8d301eab162b2c213

Request headers

Referer
http://unis.link/nestor.rug/login.aspx2RelSISkArEjhwQa4zbSnUJTsMwEturbinding23dredirect2WwKFKsJKL3zFZHvWAdv23eeIK5rfibTo220ldvDYLH2252BPkxYBQn26SAMLRequest23dfVL2B9/
User-Agent
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.61 Safari/537.36

Response headers

Content-Type
image/png
truncated
/
11 KB
0
Image
General
Full URL
data:truncated
Protocol
DATA
Server
-, , ASN (),
Reverse DNS
Software
/
Resource Hash
43d8852d8630a035d1e2c18015f945dee9e4bbe75b036cd9855858d101ae4639

Request headers

Referer
http://unis.link/nestor.rug/login.aspx2RelSISkArEjhwQa4zbSnUJTsMwEturbinding23dredirect2WwKFKsJKL3zFZHvWAdv23eeIK5rfibTo220ldvDYLH2252BPkxYBQn26SAMLRequest23dfVL2B9/
User-Agent
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.61 Safari/537.36

Response headers

Content-Type
image/gif
truncated
/
63 KB
0
Image
General
Full URL
data:truncated
Protocol
DATA
Server
-, , ASN (),
Reverse DNS
Software
/
Resource Hash
529462e91c73fe67d6c0d4b954f7e09c99fb10a21b25983a5df018a214c860a0

Request headers

Referer
http://unis.link/nestor.rug/login.aspx2RelSISkArEjhwQa4zbSnUJTsMwEturbinding23dredirect2WwKFKsJKL3zFZHvWAdv23eeIK5rfibTo220ldvDYLH2252BPkxYBQn26SAMLRequest23dfVL2B9/
User-Agent
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.61 Safari/537.36

Response headers

Content-Type
image/gif
truncated
/
70 B
0
Image
General
Full URL
data:truncated
Protocol
DATA
Server
-, , ASN (),
Reverse DNS
Software
/
Resource Hash
494b12be56467b3d084c0513a342bb013a6b04fa63242e21b39914b52a5efc7c

Request headers

Referer
http://unis.link/nestor.rug/login.aspx2RelSISkArEjhwQa4zbSnUJTsMwEturbinding23dredirect2WwKFKsJKL3zFZHvWAdv23eeIK5rfibTo220ldvDYLH2252BPkxYBQn26SAMLRequest23dfVL2B9/
User-Agent
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.61 Safari/537.36

Response headers

Content-Type
image/gif
truncated
/
60 KB
0
Image
General
Full URL
data:truncated
Protocol
DATA
Server
-, , ASN (),
Reverse DNS
Software
/
Resource Hash
25a12acd00a6923f16cb29153bcd2ca519a22e35c056cd1dc1a2029cbae0ab90

Request headers

Referer
http://unis.link/nestor.rug/login.aspx2RelSISkArEjhwQa4zbSnUJTsMwEturbinding23dredirect2WwKFKsJKL3zFZHvWAdv23eeIK5rfibTo220ldvDYLH2252BPkxYBQn26SAMLRequest23dfVL2B9/
User-Agent
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.61 Safari/537.36

Response headers

Content-Type
image/gif
truncated
/
8 KB
0
Image
General
Full URL
data:truncated
Protocol
DATA
Server
-, , ASN (),
Reverse DNS
Software
/
Resource Hash
243cf6e9ec23f306ad9af6596d94f0079cacc65ca7e58d57d4a82a32148fa648

Request headers

Referer
http://unis.link/nestor.rug/login.aspx2RelSISkArEjhwQa4zbSnUJTsMwEturbinding23dredirect2WwKFKsJKL3zFZHvWAdv23eeIK5rfibTo220ldvDYLH2252BPkxYBQn26SAMLRequest23dfVL2B9/
User-Agent
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.61 Safari/537.36

Response headers

Content-Type
image/png
truncated
/
8 KB
0
Image
General
Full URL
data:truncated
Protocol
DATA
Server
-, , ASN (),
Reverse DNS
Software
/
Resource Hash
b69062bf56459c97cacbf1a52894c5c6b79b4dbce89caba24e222ff2cfe2a9f0

Request headers

Referer
http://unis.link/nestor.rug/login.aspx2RelSISkArEjhwQa4zbSnUJTsMwEturbinding23dredirect2WwKFKsJKL3zFZHvWAdv23eeIK5rfibTo220ldvDYLH2252BPkxYBQn26SAMLRequest23dfVL2B9/
User-Agent
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.61 Safari/537.36

Response headers

Content-Type
image/png
truncated
/
52 KB
0
Image
General
Full URL
data:truncated
Protocol
DATA
Server
-, , ASN (),
Reverse DNS
Software
/
Resource Hash
d4f5779bfff0a4ab3e3f6a69147a2035600c8360c8316b49a3e7025ea6bbb90f

Request headers

Referer
http://unis.link/nestor.rug/login.aspx2RelSISkArEjhwQa4zbSnUJTsMwEturbinding23dredirect2WwKFKsJKL3zFZHvWAdv23eeIK5rfibTo220ldvDYLH2252BPkxYBQn26SAMLRequest23dfVL2B9/
User-Agent
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.61 Safari/537.36

Response headers

Content-Type
image/png
truncated
/
4 KB
0
Image
General
Full URL
data:truncated
Protocol
DATA
Server
-, , ASN (),
Reverse DNS
Software
/
Resource Hash
257b2b0d438d6703c237366fbcfd55f5c3f77fff1615bd664a8db3266c62cf85

Request headers

Referer
http://unis.link/nestor.rug/login.aspx2RelSISkArEjhwQa4zbSnUJTsMwEturbinding23dredirect2WwKFKsJKL3zFZHvWAdv23eeIK5rfibTo220ldvDYLH2252BPkxYBQn26SAMLRequest23dfVL2B9/
User-Agent
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.61 Safari/537.36

Response headers

Content-Type
image/png
truncated
/
4 KB
0
Image
General
Full URL
data:truncated
Protocol
DATA
Server
-, , ASN (),
Reverse DNS
Software
/
Resource Hash
05d2d6abbdd6199deb4ed8f689a83792279e4cfa4b2f7ac458393a375f1c282a

Request headers

Referer
http://unis.link/nestor.rug/login.aspx2RelSISkArEjhwQa4zbSnUJTsMwEturbinding23dredirect2WwKFKsJKL3zFZHvWAdv23eeIK5rfibTo220ldvDYLH2252BPkxYBQn26SAMLRequest23dfVL2B9/
User-Agent
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.61 Safari/537.36

Response headers

Content-Type
image/png
truncated
/
3 KB
0
Image
General
Full URL
data:truncated
Protocol
DATA
Server
-, , ASN (),
Reverse DNS
Software
/
Resource Hash
79bcb72a31c434195f95e7c7fb5e0a1c2fdbfa4521c1a0e79ad63c7425a83838

Request headers

Referer
http://unis.link/nestor.rug/login.aspx2RelSISkArEjhwQa4zbSnUJTsMwEturbinding23dredirect2WwKFKsJKL3zFZHvWAdv23eeIK5rfibTo220ldvDYLH2252BPkxYBQn26SAMLRequest23dfVL2B9/
User-Agent
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.61 Safari/537.36

Response headers

Content-Type
image/png
truncated
/
1 KB
0
Image
General
Full URL
data:truncated
Protocol
DATA
Server
-, , ASN (),
Reverse DNS
Software
/
Resource Hash
61d4dafaabf9b952eed5ddf929abb838778f51dd02e96a135cf442f5e0a51967

Request headers

Referer
http://unis.link/nestor.rug/login.aspx2RelSISkArEjhwQa4zbSnUJTsMwEturbinding23dredirect2WwKFKsJKL3zFZHvWAdv23eeIK5rfibTo220ldvDYLH2252BPkxYBQn26SAMLRequest23dfVL2B9/
User-Agent
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.61 Safari/537.36

Response headers

Content-Type
image/png
truncated
/
1 KB
0
Image
General
Full URL
data:truncated
Protocol
DATA
Server
-, , ASN (),
Reverse DNS
Software
/
Resource Hash
efc3b7dabfdf0042ae32a73d499519f66cab9cd09aca989c7ee7821fe868f457

Request headers

Referer
http://unis.link/nestor.rug/login.aspx2RelSISkArEjhwQa4zbSnUJTsMwEturbinding23dredirect2WwKFKsJKL3zFZHvWAdv23eeIK5rfibTo220ldvDYLH2252BPkxYBQn26SAMLRequest23dfVL2B9/
User-Agent
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.61 Safari/537.36

Response headers

Content-Type
image/png
truncated
/
1 KB
0
Image
General
Full URL
data:truncated
Protocol
DATA
Server
-, , ASN (),
Reverse DNS
Software
/
Resource Hash
e49b5d40feced1cf27d21538195bf9c3dbd43aa818ab44f517148e9e0fccdae2

Request headers

Referer
http://unis.link/nestor.rug/login.aspx2RelSISkArEjhwQa4zbSnUJTsMwEturbinding23dredirect2WwKFKsJKL3zFZHvWAdv23eeIK5rfibTo220ldvDYLH2252BPkxYBQn26SAMLRequest23dfVL2B9/
User-Agent
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.61 Safari/537.36

Response headers

Content-Type
image/png
truncated
/
592 B
0
Image
General
Full URL
data:truncated
Protocol
DATA
Server
-, , ASN (),
Reverse DNS
Software
/
Resource Hash
a96d3ab1af723f2a4d77a0e7c2120f6c4d3df1b5732f1ee2e485b2cb173620f8

Request headers

Referer
http://unis.link/nestor.rug/login.aspx2RelSISkArEjhwQa4zbSnUJTsMwEturbinding23dredirect2WwKFKsJKL3zFZHvWAdv23eeIK5rfibTo220ldvDYLH2252BPkxYBQn26SAMLRequest23dfVL2B9/
User-Agent
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.61 Safari/537.36

Response headers

Content-Type
image/gif
truncated
/
100 B
0
Image
General
Full URL
data:truncated
Protocol
DATA
Server
-, , ASN (),
Reverse DNS
Software
/
Resource Hash
e450a2b3f939bd4fd3213d7c680ca4766695f2400c41a1b317d2b96bebed1e54

Request headers

Referer
http://unis.link/nestor.rug/login.aspx2RelSISkArEjhwQa4zbSnUJTsMwEturbinding23dredirect2WwKFKsJKL3zFZHvWAdv23eeIK5rfibTo220ldvDYLH2252BPkxYBQn26SAMLRequest23dfVL2B9/
User-Agent
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.61 Safari/537.36

Response headers

Content-Type
image/gif
truncated
/
239 B
0
Image
General
Full URL
data:truncated
Protocol
DATA
Server
-, , ASN (),
Reverse DNS
Software
/
Resource Hash
6c63e2d1b3f228e10088537f077e4565d02141da0d23c2e505ae51d349c1d1bf

Request headers

Referer
http://unis.link/nestor.rug/login.aspx2RelSISkArEjhwQa4zbSnUJTsMwEturbinding23dredirect2WwKFKsJKL3zFZHvWAdv23eeIK5rfibTo220ldvDYLH2252BPkxYBQn26SAMLRequest23dfVL2B9/
User-Agent
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.61 Safari/537.36

Response headers

Content-Type
image/png
truncated
/
171 B
0
Image
General
Full URL
data:truncated
Protocol
DATA
Server
-, , ASN (),
Reverse DNS
Software
/
Resource Hash
7585125fb0e41ddcd6cbcc2b7b750143b4a671bff39d477df8181b4e19e71bb6

Request headers

Referer
http://unis.link/nestor.rug/login.aspx2RelSISkArEjhwQa4zbSnUJTsMwEturbinding23dredirect2WwKFKsJKL3zFZHvWAdv23eeIK5rfibTo220ldvDYLH2252BPkxYBQn26SAMLRequest23dfVL2B9/
User-Agent
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.61 Safari/537.36

Response headers

Content-Type
image/gif
truncated
/
2 KB
0
Image
General
Full URL
data:truncated
Protocol
DATA
Server
-, , ASN (),
Reverse DNS
Software
/
Resource Hash
5fe03bfd95a2d4e640ed7d04dcb08ef991c327a5ab6f6fdb9eb06e1efc76af30

Request headers

Referer
http://unis.link/nestor.rug/login.aspx2RelSISkArEjhwQa4zbSnUJTsMwEturbinding23dredirect2WwKFKsJKL3zFZHvWAdv23eeIK5rfibTo220ldvDYLH2252BPkxYBQn26SAMLRequest23dfVL2B9/
User-Agent
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.61 Safari/537.36

Response headers

Content-Type
image/png
sysNews
nestor.rug.nl/webapps/RuG-NewsRoom-bb_bb60/do/
29 B
875 B
XHR
General
Full URL
https://nestor.rug.nl/webapps/RuG-NewsRoom-bb_bb60/do/sysNews?loginOnly=true
Requested by
Host: text
URL: data:text/javascript;base64,LyohIGpRdWVyeSB2MS44LjMgan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GwiK2VdLG4uYm9keVsib2Zmc2V0IitlXSxzWyJvZmZzZXQiK2VdLHNbImNsaWVudCIrZV0pKTppPT09dD92LmNzcyhuLHIsaSx1KTp2LnN0eWxlKG4scixpLHUpfSxuLG8/aTp0LG8sbnVsbCl9fSl9KSxlLmpRdWVyeT1lLiQ9dix0eXBlb2YgZGVmaW5lPT0iZnVuY3Rpb24iJiZkZWZpbmUuYW1kJiZkZWZpbmUuYW1kLmpRdWVyeSYmZGVmaW5lKCJqcXVlcnkiLFtdLGZ1bmN0aW9uKCl7cmV0dXJuIHZ9KX0pKHdpbmRvdyk7
Protocol
HTTP/1.1
Security
TLS 1.2, ECDHE_RSA, AES_128_CBC
Server
46.183.240.177 , Netherlands, ASN35156 (BLACKBOARD-AS, NL),
Reverse DNS
nestor.blackboard.com
Software
/
Resource Hash
e546173aeec64303a634759e296e0ffbab9c366b232b774235399d141a163711
Security Headers
Name Value
Content-Security-Policy frame-ancestors 'self'
X-Frame-Options SAMEORIGIN

Request headers

Accept
application/json, text/javascript, */*; q=0.01
Referer
http://unis.link/nestor.rug/login.aspx2RelSISkArEjhwQa4zbSnUJTsMwEturbinding23dredirect2WwKFKsJKL3zFZHvWAdv23eeIK5rfibTo220ldvDYLH2252BPkxYBQn26SAMLRequest23dfVL2B9/
User-Agent
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.61 Safari/537.36

Response headers

Content-Security-Policy
frame-ancestors 'self'
Content-Encoding
gzip
Vary
accept-encoding
P3P
CP="CAO PSA OUR"
Cneonction
close
Content-Length
48
X-Blackboard-product
Blackboard Learn ™ 3800.0.3-rel.12+b4d1082
Pragma
private
Last-Modified
Mon, 21 Aug 2000 21:02:16 GMT
X-Blackboard-appserver
fgprd-100732-7794-app005.mhint
Date
Fri, 21 Aug 2020 21:02:16 GMT
X-Frame-Options
SAMEORIGIN
Content-Type
application/json
Access-Control-Allow-Origin
*
Cache-Control
private, max-age=0, no-store, must-revalidate
Expires
Wed, 21 Aug 2019 21:02:16 GMT
rssView
nestor.rug.nl/webapps/RuG-pm-bb_bb60/do/
2 KB
2 KB
XHR
General
Full URL
https://nestor.rug.nl/webapps/RuG-pm-bb_bb60/do/rssView?gadget=getcontent&module_id=_3535_1
Requested by
Host: text
URL: data:text/javascript;base64,LyohIGpRdWVyeSB2MS44LjMganF1ZXJ5LmNvbSB8IGpxdWVyeS5vcmcvbGljZW5zZSAqLwooZnVuY3Rpb24oZSx0KXtmdW5jdGlvbiBfKGUpe3ZhciB0PU1bZV09e307cmV0dXJuIHYuZWFjaChlLnNwbGl0KHkpLGZ1bmN0aW9uKGUsbil7dFtuXT0hMH0pLHR9ZnVuY3Rpb24gSChlLG4scil7aWYocj09PXQmJmUubm9kZVR5cGU9PT0xKXt2YXIgaT0iZGF0YS0iK24ucmVwbGFjZShQLCItJDEiKS50b0xvd2VyQ2FzZSgpO3I9ZS5nZXRBdHRyaWJ1dGUoaSk7aWYodHlwZW9mIHI9PSJzdHJpbmciKXt0cnl7cj1yPT09InRydWUiPyEwOnI9PT0iZmFsc2UiPyExOnI9PT0ibnVsbCI/bnVsbDorcisiIj09PXI/K3I6RC50ZXN0KHIpP3YucGFyc2VKU09OKHIpOnJ9Y2F0Y2gocyl7fXYuZGF0YShlLG4scil9ZWxzZSByPXR9cmV0dXJuIHJ9ZnVuY3Rpb24gQihlKXt2YXIgdDtmb3IodCBpbiBlKXtpZih0PT09ImRhdGEiJiZ2LmlzRW1wdHlPYmplY3QoZVt0XSkpY29udGludWU7aWYodCE9PSJ0b0pTT04iKXJldHVybiExfXJldHVybiEwfWZ1bmN0aW9uIGV0KCl7cmV0dXJuITF9ZnVuY3Rpb24gdHQoKXtyZXR1cm4hMH1mdW5jdGlvbiB1dChlKXtyZXR1cm4hZXx8IWUucGFyZW50Tm9kZXx8ZS5wYXJlbnROb2RlLm5vZGVUeXBlPT09MTF9ZnVuY3Rpb24gYXQoZSx0KXtkbyBlPWVb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NzKHRoaXMsZnVuY3Rpb24obixyLGkpe3ZhciBzO3JldHVybiB2LmlzV2luZG93KG4pP24uZG9jdW1lbnQuZG9jdW1lbnRFbGVtZW50WyJjbGllbnQiK2VdOm4ubm9kZVR5cGU9PT05PyhzPW4uZG9jdW1lbnRFbGVtZW50LE1hdGgubWF4KG4uYm9keVsic2Nyb2xsIitlXSxzWyJzY3JvbGwiK2VdLG4uYm9keVsib2Zmc2V0IitlXSxzWyJvZmZzZXQiK2VdLHNbImNsaWVudCIrZV0pKTppPT09dD92LmNzcyhuLHIsaSx1KTp2LnN0eWxlKG4scixpLHUpfSxuLG8/aTp0LG8sbnVsbCl9fSl9KSxlLmpRdWVyeT1lLiQ9dix0eXBlb2YgZGVmaW5lPT0iZnVuY3Rpb24iJiZkZWZpbmUuYW1kJiZkZWZpbmUuYW1kLmpRdWVyeSYmZGVmaW5lKCJqcXVlcnkiLFtdLGZ1bmN0aW9uKCl7cmV0dXJuIHZ9KX0pKHdpbmRvdyk7
Protocol
HTTP/1.1
Security
TLS 1.2, ECDHE_RSA, AES_128_CBC
Server
46.183.240.177 , Netherlands, ASN35156 (BLACKBOARD-AS, NL),
Reverse DNS
nestor.blackboard.com
Software
/
Resource Hash
22e34a3de3090271dacf99e0d545b6a544b11d800298f0f0f2377d94b9f2588e
Security Headers
Name Value
Content-Security-Policy frame-ancestors 'self'
X-Frame-Options SAMEORIGIN

Request headers

Accept
*/*
Referer
http://unis.link/nestor.rug/login.aspx2RelSISkArEjhwQa4zbSnUJTsMwEturbinding23dredirect2WwKFKsJKL3zFZHvWAdv23eeIK5rfibTo220ldvDYLH2252BPkxYBQn26SAMLRequest23dfVL2B9/
User-Agent
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.61 Safari/537.36

Response headers

Content-Security-Policy
frame-ancestors 'self'
Content-Encoding
gzip
Vary
Accept-Encoding
Transfer-Encoding
chunked
P3P
CP="CAO PSA OUR"
nnCoection
close
X-Blackboard-product
Blackboard Learn ™ 3800.0.3-rel.12+b4d1082
Pragma
private
Last-Modified
Mon, 21 Aug 2000 21:02:16 GMT
X-Blackboard-appserver
fgprd-100732-7794-app009.mhint
Date
Fri, 21 Aug 2020 21:02:16 GMT
X-Frame-Options
SAMEORIGIN
Content-Type
text/html;charset=ISO-8859-1
Access-Control-Allow-Origin
*
Cache-Control
private, max-age=0, no-store, must-revalidate
Expires
Wed, 21 Aug 2019 21:02:16 GMT

Verdicts & Comments Add Verdict or Comment

9 JavaScript Global Variables

These are the non-standard "global" variables defined on the window object. These can be helpful in identifying possible client-side frameworks and code.

object| trustedTypes object| html5 object| Modernizr function| yepnope function| $ function| jQuery object| DateFormat function| NestorImpl object| Nestor

1 Cookies

Domain/Path Name / Value
.unis.link/ Name: __cfduid
Value: d76bb807ad2f55946b344137058d55b571598043735

Indicators

This is a term in the security industry to describe indicators such as IPs, Domains, Hashes, etc. This does not imply that any of these indicate malicious activity.

nestor.rug.nl
unis.link
2606:4700:3037::681b:b7d0
46.183.240.177
05d2d6abbdd6199deb4ed8f689a83792279e4cfa4b2f7ac458393a375f1c282a
1bb2279aed6bc1438d2b17a5ffcbac9d37864582aedeeec8d301eab162b2c213
22e34a3de3090271dacf99e0d545b6a544b11d800298f0f0f2377d94b9f2588e
243cf6e9ec23f306ad9af6596d94f0079cacc65ca7e58d57d4a82a32148fa648
257b2b0d438d6703c237366fbcfd55f5c3f77fff1615bd664a8db3266c62cf85
2595496fe48df6fcf9b1bc57c29a744c121eb4dd11566466bc13d2e52e6bbcc8
25a12acd00a6923f16cb29153bcd2ca519a22e35c056cd1dc1a2029cbae0ab90
43d8852d8630a035d1e2c18015f945dee9e4bbe75b036cd9855858d101ae4639
46d5b3cf4c425c99278173bb1ebebe19e68a1fe8b4f35773738d5ee0560a4c49
494b12be56467b3d084c0513a342bb013a6b04fa63242e21b39914b52a5efc7c
529462e91c73fe67d6c0d4b954f7e09c99fb10a21b25983a5df018a214c860a0
5fe03bfd95a2d4e640ed7d04dcb08ef991c327a5ab6f6fdb9eb06e1efc76af30
61c6caebd23921741fb5ffe6603f16634fca9840c2bf56ac8201e9264d6daccf
61d4dafaabf9b952eed5ddf929abb838778f51dd02e96a135cf442f5e0a51967
6c63e2d1b3f228e10088537f077e4565d02141da0d23c2e505ae51d349c1d1bf
7585125fb0e41ddcd6cbcc2b7b750143b4a671bff39d477df8181b4e19e71bb6
79bcb72a31c434195f95e7c7fb5e0a1c2fdbfa4521c1a0e79ad63c7425a83838
a96d3ab1af723f2a4d77a0e7c2120f6c4d3df1b5732f1ee2e485b2cb173620f8
b69062bf56459c97cacbf1a52894c5c6b79b4dbce89caba24e222ff2cfe2a9f0
cfe52223d13f6cf30e7f4657a6e0314e714ad0822f8a5f7b477ee3433bf2cb41
d4f5779bfff0a4ab3e3f6a69147a2035600c8360c8316b49a3e7025ea6bbb90f
d9fd86dca80fb54a8b58e5d48e12c65ba5eb546ed2ab3b222173794ff529a0f5
e42e14e35cdc68c0ddeee5ceb848f5ff6c158c9c146cd209f3ce4a453ece3bca
e450a2b3f939bd4fd3213d7c680ca4766695f2400c41a1b317d2b96bebed1e54
e49b5d40feced1cf27d21538195bf9c3dbd43aa818ab44f517148e9e0fccdae2
e546173aeec64303a634759e296e0ffbab9c366b232b774235399d141a163711
ed1ffb621dfdbb3acffc48ba2e07e7c32c6168f1f2e54595775ee2374aad2d2b
efc3b7dabfdf0042ae32a73d499519f66cab9cd09aca989c7ee7821fe868f457